View Single Post
Old 10-23-2019, 06:25 AM   #2
Registered User
Join Date: Aug 2015
Posts: 29

Most importantly, “window.onload” will execute code when browser has loaded the DOM tree and all other resources like images, objects, etc, while onDocumentReady allows you to execute code when only the DOM tree has been built, without waiting for images to load.

Last edited by Czar; 04-05-2020 at 03:29 AM.
Brianvoges is offline   Reply With Quote