Fixes#330: Turning off the updating when the tab isn't active
When the tab is not visible from the user, the livestats refresh are
stopped. As soon as its visibility changes (from visibilitychange
API), the livestats are refreshed as usual.
This will prevent unnecessary calls to the different services when the
tab is hidden from the user.
After some major debugging once again, I've concluded that the previous
webpack.mix.js worked fine, but threw an error when minifying the app.js
file. The culprit is because the current app.js contains some newer
ECMAScript code that needs to be translated. However, with the current
inclusion of huebee.js into the samme command, it seems to mess things
up.
Just as a potensial fix for now is to just ignore the issue, and have a
stab at it at a later date. This reverts the "fixes" I've made before.