Reputation: 161
How would you apply the jQuery UI Progressbar to a website's loading progress (during the initial loading)?
Any help with this would be greatly appreciated. :)
Upvotes: 0
Views: 131
Reputation: 9974
You can use Pace.js Javascript Library for progress bar. you could write code like this at the very top level of your code:
<link href='pace.css' rel="stylesheet">
<script type="text/javascript">
paceOptions = {
ajax: false,
document: true,
eventLag: false,
elements: {
selectors: ['body']
}
};
</script>
<script type="text/javascript" src="pace.min.js"></script>
Upvotes: 1