DONE - Visual Sign Of A Loaded Page

Shows a big DONE sign when the page is fully loaded

作者
JoeSimmons
日安装量
0
总安装量
99
评分
5 0 0
版本
1.0.3
创建于
2014-08-08
更新于
2014-08-08
许可证
GPL version 3 or any later version
适用于

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