Wait For Load State explaination

This article does a pretty good job explaining the PageLoadStates.

Page: DOMContentLoaded, load, beforeunload, unload (javascript.info)

2 Likes