From 0653ae1473d2011c6a7547367ef1b184a3df2c41 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 29 Sep 2008 09:36:02 +0000 Subject: [PATCH] move PageLoad autocmd event triggering to the end of onPageLoad() --- content/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/events.js b/content/events.js index a8052884..0fe7da60 100644 --- a/content/events.js +++ b/content/events.js @@ -478,8 +478,6 @@ liberator.Events = function () //{{{ if (url && liberator.history) liberator.history.add(url, title); - liberator.autocommands.trigger("PageLoad", url); - // mark the buffer as loaded, we can't use liberator.buffer.loaded // since that always refers to the current buffer, while doc can be // any buffer, even in a background tab @@ -503,6 +501,8 @@ liberator.Events = function () //{{{ { liberator.echomsg("Background tab loaded: " + title || url, 1); } + + liberator.autocommands.trigger("PageLoad", url); } }