Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 847 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 847 Bytes

Queue.js

asynchronous module loading controller for javascript projects

Instructions:

  • As seen in the example , every module to be loaded in the routine must create a global variable with it's name. To connect modules, as in '/_examples/module_4.js' , module content must be enclosed in a closure and reference the variables name (see Queue.js lines 51-53). All module names and paths must be contained in the Sources object (/examples/_index.js)

  • _server.js is a dummy static server for testing locally (you will need node.js)

  • /_examples folder holds a working example

  • 'index.html' and '/examples/index.html' accomplish the same thing . This demonstrates the "path independence" property of the main routine in loading scripts

-- open the console to inspect exactly what is happening in the example.

-- tested on Chrome and Firefox