Diff. window.load/document.ready

Difference $(window).load and $(document).ready :

$(document).ready is jQuery event that is fired when DOM is loaded, so it’s fired when the document structure is ready.

Note: <body>...</body>

$(window).load event is fired after whole content (including css, images etc..) is loaded.

This is major difference.

Note: <html>...</html>

Comments