1
0
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:
Doug Kearns
2008-09-29 13:45:33 +00:00
parent ce3cc55944
commit 1cb78570f2

View File

@@ -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)