Pace.js is a javascript library to create a beautiful page load progress bar in a website. The progress is established automatically by inspecting ajax requests, document ready state, event loop lag (showing that javascript is being executed) and the existence of specific elements on a page.
When an ajax navigation or a pushState
event takes place, the progress bar will also be restarted again.