Greasy Fork is available in English.

DONE - Visual Sign Of A Loaded Page

Shows a big DONE sign when the page is fully loaded

Auteur
JoeSimmons
Installations quotidiennes
0
Installations (total)
93
Notes
4 0 0
Version
1.0.3
Créé
08/08/2014
Mis à jour
08/08/2014
Licence
GPL version 3 or any later version
S'applique à

Before this script, I would find myself constantly hovering over things on the page to see if the cursor properly changed to a hand (aka. checking if the page was fully loaded).

Sometimes a page can look loaded, but not be yet. On some slower PCs, when you try to interact with a non-fully-loaded page, it can be very laggy.
So I decided to give users a way to know when the page was fully loaded, so they can see when the best time for them to start interacting with the page should be.

[developer info]
I decided to make my own function for determining when the page was ready for interaction, as opposed to just hitching onto the "load" event.
I add listeners that listen for any subtree modifications, node insertions, and node removals. If any of these happen before a timer of 500ms is up,
the timer will reset and start listening again, until it reaches a point where relatively no DOM activity has happened for over 500ms.
This ensures that the page is fairly ready to be interacted with, since it is no longer modifying the page that often.




Donate to Joe Simmons

Dedicated to Elliott Hulse