Simply include debug-requirejs-loading.js
script before starting your requirejs dependencies :
<script src="scripts/require.js"></script>
<script src="path/to/debug-requirejs-loading.js"></script>
<script type="text/javascript">
require(['data/main'], function(){ console.log("requirejs started !"); });
</script>
It will show :
define()
definition calls ordering (you can browse/search it throughwindow.__requirejsDebug.defined
array at any moment)define()
ready function calls ordering (which will depend on yourrequire()
calls). You can browse/search throughtwindow.__requirejsDebug.ready
array at any moment.
Thanks a lot for that script