Use 'now visible algorithm' for the PAGE-VISIBILITY hook.
Merge pull request #78 from mounirlamouri/now_visible

Use 'now visible algorithm' for the PAGE-VISIBILITY hook.