You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$(document).ready() never fires if the page is already loaded #28
Document ready never fires if it is called after the page is already loaded (for example if the script is loaded via require.js).
There are probably other cases where this could happen as well, like if the script file takes a long time to load and it's placed inside the <body>. Not sure, should be tested more thoroughly.
Activity
itsrachelfish commentedon Apr 7, 2016
I guess this could also happen if a document ready function is inside of a
setTimeoutorsetInterval? Not sure why anyone would do that though...itsrachelfish commentedon Jan 15, 2018
You can detect the ready state by using https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState