February 2010
LABjs :: Loading And Blocking JavaScript
by 2 othersLABjs (Loading And Blocking JavaScript) is an open-source (MIT license) project. on-demand JavaScript loader, capable of loading any JavaScript resource, from any location, into any page, at any time.
LABjs by default will load (and execute) all scripts in parallel as fast as the browser will allow. However, you can easily specify which scripts have execution order dependencies and LABjs will ensure proper execution order. This makes LABjs safe to use for virtually any JavaScript resource, whether you control/host it or not, and whether it is standalone or part of a larger dependency tree of resources. It uses an expressive, chaining API to specify which scripts to load, and when to wait ("block"), if necessary, for execution before proceeding with further execution.
November 2009
1
(3 marks)