A JavaScript library for measuring First Input Delay (FID) in the browser.
First Input Delay is a JavaScript library that measures the First Input Delay (FID) metric in web browsers. It captures the time between a user's first interaction with a page and the browser's response, helping developers identify input responsiveness issues. This library is essential for monitoring real-world user experience and improving web performance.
Frontend developers and web performance engineers who need to measure and optimize input responsiveness on websites or web applications.
Developers choose this library because it provides a lightweight, reliable way to measure a critical Core Web Vital metric with minimal overhead and broad browser compatibility. Its integration simplicity and focus on FID make it a straightforward tool for performance monitoring.
A JavaScript library for measuring First Input Delay (FID) in the browser.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The minified script is under 400 bytes gzipped, minimizing performance impact when inlined in the document head as recommended.
Tested and works in all major browsers, including Internet Explorer back to version 9, ensuring wide coverage for legacy environments.
Exposes a global method perfMetrics.onFirstInputDelay() to register callbacks with delay values and event details for straightforward FID tracking.
Reliably captures the First Input Delay, a critical Core Web Vital, with minimal overhead and precise event timing.
The library is no longer maintained; Google has moved it to the web-vitals library, making it obsolete for new projects and lacking updates.
For optimal performance, the script must be inlined in the HTML head, which can complicate modern build processes and conflict with bundling tools.
Only measures FID and does not support other web performance metrics, forcing developers to use additional libraries for comprehensive monitoring.