travis-web/assets/scripts
Piotr Sarnacki aaf35365b1 Don't process pusher events immediately when running in background
When user has Travis CI's web page open in the background we should not
process pusher events immediately, because she will not see the changes
on a page anyway. During peak hours we can get several messages per
second, which requires some CPU work almost all the time. By using
visibility API we can detect if the tab with Travis CI is in the
background and if that's the case we will process pusher messages in
batches every 5 minutes. This is much better for the CPU, because it
means one bigger spike every few minutes and additionally some of the
updates don't have to be done (for example if we get several job:started
events, Ember's run loop will process only last one when it comes to
rendering 'current' build).
2013-05-29 16:54:12 +03:00
..
app Don't process pusher events immediately when running in background 2013-05-29 16:54:12 +03:00
config We can remove locales.js, it will be created on compilation on heroku 2012-12-17 22:17:04 +01:00
data Add Blue Box as the default sponsor of a test run. 2013-05-10 23:19:07 +02:00
lib Change Ember.run.later to setTimeout in periodic actions 2013-05-29 11:17:58 +03:00
spec Fix tests with new Ember version 2013-05-15 18:46:41 +02:00
vendor Add visibility.js, wrapper on page visibility API 2013-05-29 13:42:28 +03:00
travis.coffee Always send afterSignIn event 2013-05-16 13:16:53 +02:00