Visit https://github.com/usablica/progress.js for more info
- load css and js
<html>
<head>
... load css and js
</head>
<script>
progressJs().start();
if(window.attachEvent) {
window.attachEvent('onload', function(){ progressJs().end(); });
} else {
if(window.onload) {
var curronload = window.onload;
var newonload = function() {
curronload();
progressJs().end();
};
window.onload = newonload;
} else {
window.onload = function(){ progressJs().end(); };
}
}
</script>
</html>
- that's it!