Skip to content

Latest commit

 

History

History
74 lines (42 loc) · 2.16 KB

File metadata and controls

74 lines (42 loc) · 2.16 KB

web-vitals

A modular library for measuring the Web Vitals metrics on real users.

This was vendored from: https://github.com/GoogleChrome/web-vitals: v5.0.2

The commit SHA used is: 463abbd425cda01ed65e0b5d18be9f559fe446cb

Current vendored web vitals are:

  • LCP (Largest Contentful Paint)
  • FID (First Input Delay)
  • CLS (Cumulative Layout Shift)
  • INP (Interaction to Next Paint)
  • TTFB (Time to First Byte)

Notable Changes from web-vitals library

This vendored web-vitals library is meant to be used in conjunction with the @sentry/browser browserTracingIntegration. As such, logic around BFCache and multiple reports were removed from the library as our web-vitals only report once per pageload.

License

Apache 2.0

CHANGELOG

#17076

  • Removed FID-related code with v10 of the SDK

#16492

  • Bumped from Web Vitals 4.2.5 to 5.0.2
    • Mainly fixes some INP, LCP and FCP edge cases
    • Original library removed FID; we still keep it around for now

#14439

  • Bumped from Web Vitals v3.5.2 to v4.2.4

#11391

  • Bumped from Web Vitals v3.0.4 to v3.5.2

#5987

  • Bumped from Web Vitals v2.1.0 to v3.0.4

#3781

  • Bumped from Web Vitals v0.2.4 to v2.1.0

#3515

  • Remove support for Time to First Byte (TTFB)

#2964

  • Added support for Cumulative Layout Shift (CLS) and Time to First Byte (TTFB)

#2909

  • Added support for FID (First Input Delay) and LCP (Largest Contentful Paint)

#9690

  • Added support for INP (Interaction to Next Paint)

TODO

  • Add support for TTFB (Time to First Byte)