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
What do you think about adding an internal dependency called "document", that's triggered by document.ready?
I faced random issues with jquery dependencies until I realized my jQuery code now got executed before the DOM was ready. Clearly a coding bug on my side, but it got me thinking.
DOM timing with jQuery can definitely get tricky. I'm hesitant to add a jQuery-specific feature but I'll think about it some more. In case it helps you can combine your loadjs calls into one:
loadjs('/path/to/jquery.js',function(){$(function(){loadjs.done('jquery');});});// execute code after jQuery document.readyloadjs.ready('jquery',function(){});
What do you think about adding an internal dependency called "document", that's triggered by document.ready?
I faced random issues with jquery dependencies until I realized my jQuery code now got executed before the DOM was ready. Clearly a coding bug on my side, but it got me thinking.
My current workaround is
Not sure if worth the feature bloat for loadjs
The text was updated successfully, but these errors were encountered: