In fact, canop re-writes in his "words" what it is explained on page : https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API?redirectlocale=en-US&redirectslug=DOM%2FUsing_the_Page_Visibility_API which license is "Creative Commons Attribution-ShareAlike".