After reviewing the javascript-loader landscape, looking for a loader that satisfies the following criteria:
$(function(){...})
constructs, yet I insist on loading jQuery late and asynchronously to speed things up.I came to the conclusion that (apparently?) none of the existing loaders fit the bill. So I wrote lockandload
back in 2014 and used it in various internal projects, but decided to open-source it now in case others find it useful. As always, when open-sourcing something, actually writing documentation takes most of the time. The documentation can always be improved. Suggestions are welcome!