JSFiddle - React, Tailwind, and code Playground
by olvlvl
HTML
<script src="http://requirejs.org/docs/release/2.1.11/minified/require.js"></script>
<p>Why does "here3" pops before the other alerts ? All the dependencies are already available, "here2" should pop before. The order is "here3", "here0", "here1", "here2"; where it should be "here0", "here1", "here2", "here3".</p>
<p>Tested with Firefox 28, 29; and Chome 34</p>
JavaScript
define('one', [], function() {
alert('here0')
return 'one'
})
define('two', [ 'one' ], function(one) {
alert('here1')
return 'two'
})
require([ 'two' ], function(two) {
alert('here2')
})
jQuery(document).ready(function() {
alert('here3')
})