The web-vitals JavaScript is a tiny, modular library for measuring all the web vitals metrics on real users.