Use this tool to track the progress of the Dojo Toolkit loader.
- Include
progress.js
immediately after loading the Dojo Toolkit
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dojo/dojo.js"></script>
<script src="progress.js"></script>
- Use the
require.progress
variable:
console.log('Loader Progress: ', Math.round(require.progress) + '%');
or define a custom require.onProgress
function:
require.onProgress = function(percent, complete, total) {
console.log('Loader Progress:', Math.round(percent) + '%');
console.log('Loaded ', complete, ' of ', total);
};