Created by: Johann-S
Hi,
this feature is for the carousel plugin to stop cycling when the page isn't visible
I re used your code @cvrebert to made my PR
I had a test unit but I think it's a bit hard to test that, if someone have a better idea how I can test that please let me know. Because my test case is easy to test on a browser but difficult on Travis