Try and take timing for requirejs module loading

http://stackoverflow.com/questions/18919184/log-the-dependencies-in-console-for-requirejs

HTML

<script>
    require = {
        paths: {
            "jquery": "http://code.jquery.com/jquery-2.0.3",
            "underscore": "http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min"
        },
        shim: {
            "underscore": {
                deps: ["jquery"],
                exports: "_"
            }
        }
    };
    </script>
    <script src="http://requirejs.org/docs/release/2.1.8/comments/require.js"></script>
    <script>
    // https://github.com/jrburke/requirejs/wiki/Internal-API:-onResourceLoad
    requirejs.onResourceLoad = function(context, map, depArray) {
        var duration = new Date() - start;
        console.log("onResourceLoad", duration + "ms", map.id);
    }
    </script>

JavaScript

start = +new Date();

require(["jquery", "underscore"], function() {
    // log the global context's defineds
    console.log("require.s.contexts._.defined", require.s.contexts);
});