diff options
| author | Stephen Blott | 2016-04-17 16:11:57 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-04-17 16:11:57 +0100 | 
| commit | 5327d51946fa86ed494c7b5cd2ba39fb79d8e9e9 (patch) | |
| tree | ae04f84ab4ef959e9b403af9aa1c0b0da1d13c7c /content_scripts/mode.coffee | |
| parent | 12350784fc45998819ef92d6b5badf03e99128ae (diff) | |
| download | vimium-5327d51946fa86ed494c7b5cd2ba39fb79d8e9e9.tar.bz2 | |
Do not init() the HUD until it's needed.
This avoids initializing around 15 (almost all unused) HUDs on sites
like GMail and Google inbox.
Because the HUD is small, there is not noticable flicker.
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index 37321660..6508627e 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -69,8 +69,7 @@ class Mode          # undefined, then the request propagates to the next mode.          # The active indicator can also be changed with @setIndicator().          if @options.indicator? -          if HUD?.isReady() -            if @options.indicator then HUD.show @options.indicator else HUD.hide true, false +          if @options.indicator then HUD.show @options.indicator else HUD.hide true, false            @passEventToPage          else @continueBubbling | 
