Include pace.js and a CSS theme of your choice, and you get a beautiful progress indicator for your page load and ajax navigation.
No need to hook into any of your code, progress is detected automatically.
Pace.js
Submit a theme! Fork us on GitHub
Documentation
HubSpot