From 6bd8318fa1a7faf942cd56b8023f2947d84f3123 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Thu, 11 Feb 2016 05:05:17 +0000 Subject: Only load help dialog iframe when the dialog is to be shown --- content_scripts/vimium_frontend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index bfc09980..382f0416 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -219,7 +219,6 @@ initializeOnDomReady = -> # We only initialize the vomnibar in the tab's main frame, because it's only ever opened there. Vomnibar.init() if DomUtils.isTopFrame() HUD.init() - HelpDialog.init() unless document.location.toString() == chrome.extension.getURL "pages/help_dialog.html" registerFrame = -> # Don't register frameset containers; focusing them is no use. @@ -783,6 +782,7 @@ window.HelpDialog ?= isReady: -> @helpUI? show: (html) -> + @init() return if HelpDialog.showing or !@isReady() HelpDialog.showing = true @helpUI.activate html -- cgit v1.2.3