Enhancement: .allReady() function lets you know when everything finished
Closed this issue · 1 comments
taoeffect commented
$script.allReady(function () { ... })
would call the anonymous when all of the scripts that have been handed to it up to that point have finished loading. No more $script
calls should happen after calling the .allReady
function.
ded commented
this can be accomplished when you add everything at once...
$script(['a.js', 'b.js', 'c.js', 'd.js'], function () {
// all done
})