How to use Document.readyState to check the document loading state in JavaScript

1 Answer

0 votes
if (document.readyState == "loading")
    document.write("document is still loading...");


/*
run:

document is still loading... 

*/

 



answered Jun 10, 2016 by avibootz
...