Document refers to the DOM, or Document Object Model, while in this case "ready" refers to when the DOM is registered by the browser. The onload event is a standard event in the DOM, while the ready event is specific to jQuery. The method might or might not have returned a new result depending on the number or connectedness of its arguments! The jQuery document ready ( $ (document).ready ()) method was implemented to execute code when the DOM is fully loaded. Calling this method after the ready event has already fired will have no effect. Connect and share knowledge within a single location that is structured and easy to search. how to run script after page load. Email *. Use $(window).load(), when you want the code inside it to run only once the entire page is ready (not only DOM). The code tries to load a website URL in an