What is Difference between $(window).load() and $(document).ready() functions?

Forums jQueryWhat is Difference between $(window).load() and $(document).ready() functions?
Staff asked 3 years ago

What is Difference between $(window).load() and $(document).ready() functions?

Answers (1)

Add Answer
Ankit Bavishi Marked As Accepted
Staff answered 3 years ago

$(document).ready() executes  when HTML document ready.

$(window).load() executes  when entire page is ready including images, iframe.

Subscribe

Select Categories