if $(document).not-ready()? How can I check if the page is still loading with Jquery?
10,101
You could check document.readyState
or use a simple variable in the global scope:
var ready = false;
$(document).ready(function () {
ready = true;
});
Author by
JimBo
Updated on June 05, 2022Comments
-
JimBo almost 2 years
I want to call a function only if the document is still loading.. how can I?