diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-10 02:17:55 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-10 02:17:55 +0300 |
commit | 21ec2facac27f77e398679c456f3479cb9a7de12 (patch) | |
tree | 95c596ba1cb746c3b8af9bc2a66501dd250da30c /libs/bower_components/visibilityjs/bower.json | |
parent | 3e81595c532781306e2b95b3abbbdae47b44bb71 (diff) |
refs #6545 do not request live information in case tab is not active
At first I used the window.blur/focus events but noticed it would also
stop refreshing if tab is active but browser window is not active. I
reckon many people might want to leave the browser open in one window
and follow the live visitors while working on something else. That's
why we should use the page visibility API which is supported by most
browsers (I think not in <= IE9). I used a different library first
but noticed it adds many event listeners like mousemove etc and it can
make Piwik slow so used the visibility.js library in the end. If someone
uses an old browser nothing will change compared to before so that
should be ok. In a next version we could initiate a refresh immediately
once the browser tab becomes active again.
Diffstat (limited to 'libs/bower_components/visibilityjs/bower.json')
-rw-r--r-- | libs/bower_components/visibilityjs/bower.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/bower_components/visibilityjs/bower.json b/libs/bower_components/visibilityjs/bower.json new file mode 100644 index 0000000000..bfcf95e48f --- /dev/null +++ b/libs/bower_components/visibilityjs/bower.json @@ -0,0 +1,20 @@ +{ + "name": "visibilityjs", + "version": "1.2.1", + "homepage": "https://github.com/ai/visibilityjs", + "authors": ["Andrey A.I. Sitnik <andrey@sitnik.ru>"], + "description": "Wrapper for the Page Visibility API", + "license": "MIT", + "main": [ + "lib/visibility.core.js", + "lib/visibility.timers.js" + ], + "ignore": [ + "package.json", + "*.gemspec", + "Cakefile", + "test", + "*.rb", + ".*" + ] +} |