From 1cb78570f2774a373ed00ac7a1b41fc2e95175ff Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 29 Sep 2008 13:45:33 +0000 Subject: [PATCH] use DOMContentLoaded rather than load for the page-load handler --- content/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/events.js b/content/events.js index 0fe7da60..52f680a8 100644 --- a/content/events.js +++ b/content/events.js @@ -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)