Difference Between Document.Ready And Window.Load




First of all Document.Ready will be fired just after the DOM is loaded fully. Document.Ready is specific to jquery only. So jquery reference is required for Document.Ready to work. It will not wait for images, controls to get loaded. The code for Document.Ready is as follows.

Difference Between Document.Ready And Window.Load, Document.Ready Vs Window.Load, Difference Between Window.Load And Document.Ready, Window.Load Vs Document.Ready, Jquery, Javascript, Asp.Net, PHP, HTML, MVC




Window.Load start working after the page content is fully loaded. It wait for the images and all other controls to be get loaded. Definitely Window.Load works after Document.Ready The code for Window.Load is as follows.

Difference Between Document.Ready And Window.Load, Document.Ready Vs Window.Load, Difference Between Window.Load And Document.Ready, Window.Load Vs Document.Ready, Jquery, Javascript, Asp.Net, PHP, HTML, MVC