mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 11:55:47 +01:00
use DOMContentLoaded rather than load for the page-load handler
This commit is contained in:
@@ -309,7 +309,7 @@ liberator.Events = function () //{{{
|
||||
|
||||
// this adds an event which is is called on each page load, even if the
|
||||
// page is loaded in a background tab
|
||||
getBrowser().addEventListener("load", onPageLoad, true);
|
||||
getBrowser().addEventListener("DOMContentLoaded", onPageLoad, true);
|
||||
|
||||
// called when the active document is scrolled
|
||||
getBrowser().addEventListener("scroll", function (event)
|
||||
|
||||
Reference in New Issue
Block a user