jrburke/requirejs — Issue #175: Requirejs doesn't load scripts asynchronously
Author: meelash
Created: 2012-01-31 01:27:32+00:00
State: open

By incrementing the value of context.scriptCount in req.load, require waits until it is decremented again in onLoad before it will call resume http://grab.by/bKBE, with the effect that script loading becomes blocking.

This test case: https://gist.github.com/1707733 illustrates the problem. foo.js is non-existent, and it will be seen that req.attach is only called twice when this page runs- once for test.js and once for foo.js.