Automatically add a customizable progress bar to your website that tracks page load and AJAX requests.
Pace is a JavaScript library that automatically adds a customizable progress bar to websites. It tracks page load progress by monitoring AJAX requests, document ready state, event loop lag, and specific DOM elements, providing visual feedback to users during navigation and content loading.
Frontend developers and web designers looking to improve perceived performance and user experience on websites with dynamic content or AJAX-heavy navigation.
Developers choose Pace for its automatic progress detection with zero configuration, lightweight footprint (4kb gzipped), and extensive customization options via themes and APIs, eliminating manual progress tracking code.
Automatically add a progress bar to your site.
Monitors AJAX requests, document ready state, event loop lag, and DOM elements without any configuration, as highlighted in the README's key features.
Includes multiple pre-built themes and allows custom CSS classes via the className option, making it simple to match site aesthetics.
Offers options to disable specific collectors like ajax or elements and set restart rules through JavaScript or HTML attributes.
Works on IE8+ and all modern browsers with no external dependencies, ensuring compatibility across a wide range of environments.
The automatic progress estimation can be unreliable for complex or non-standard page loads, as the README admits it hasn't been tested on every website and invites issue reports.
Requires JavaScript to function, making it ineffective for users with JS disabled or in server-rendered contexts without client-side enhancement.
Continuous monitoring of AJAX requests and event loop lag adds computational cost, which could impact page load times on resource-constrained devices.
A collection of loading indicators animated with CSS
A spinning activity indicator
Responsive and slick progress bars
Buttons with built-in loading indicators.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.