We've just published v5.0.0 of the web-vitals JavaScript library for measuring Core Web Vitals. github.com/GoogleChrome... As a major release, this includes a number of breaking changes as detailed in the upgrading doc: github.com/GoogleChrome... Please read carefully before upgrading. 1/5 🧵
Post
github.comGitHub - GoogleChrome/web-vitals: Essential metrics for a healthy site.Essential metrics for a healthy site. Contribute to GoogleChrome/web-vitals development by creating an account on GitHub.
We've moved to Baseline browser support, allowing us to use more modern JavaScript and reduce bundle sizes. Older browser will not be able to monitor Core Web Vitals metrics anyway, but ensure you load the library correctly (e.g. in script type=module) to prevent issues on really old browsers. 2/5
0 reposts2 likes
And we've made a number of optimisations and memory improvements so we use even less memory than before as well as a number of other improvements to the library. Please see the CHANGELOG for more details: github.com/GoogleChrome... Let us know if you have any questions, or feedback! 5/5 🏁
github.comgithub.com