【JS】Intermediate9:jQuery: Other Tricks
1.DOMContentLoaded
Run JavaScript only when the DOM is loaded and ready (but before stylesheets are fully loaded)
eg:to move elements to a different location in the page, or create new ones.
2.Load
Wait for the page to fully load - that is, when all stylesheets and images have been downloaded.
3.Type checking