Skip to content

thollingshead/dojo-loader-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dojo-loader-progress

Use this tool to track the progress of the Dojo Toolkit loader.

Usage:

  1. 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>
  1. 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);
};

About

Adds progress information to the Dojo Toolkit loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published