Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

document.readyState on jQuery ready()

jQuery(document).ready(function() {
    console.log(document.readyState);
}

shows interactive in Chrome 33 on Mac. Why not complete?

like image 975
user487772 Avatar asked Jun 19 '26 04:06

user487772


1 Answers

From developer.mozilla.org/en-US/docs/Web/API/document.readyState

Returns "loading" while the document is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.

like image 177
Jason Evans Avatar answered Jun 21 '26 17:06

Jason Evans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!