Pace is a browser-based utility that automatically monitors the loading state of web applications to provide visual feedback during page transitions and asynchronous operations. It functions as a frontend performance monitoring tool that tracks document readiness, network requests, and browser event loop activity to visualize progress without requiring manual markup changes.
The library distinguishes itself by using automated tracking mechanisms that hook into native browser objects and document lifecycle events. By employing a state-machine-driven controller, it manages the visibility of progress indicators based on real-time activity, injecting dynamic styles directly into the document head to render visual elements.
Users can customize the tracking behavior by defining specific element selectors, toggling data sources, and establishing custom rules for network request monitoring. The library also provides hooks to trigger manual lifecycle actions, allowing for integration with existing application logic to control when progress indicators appear or reset.