-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Milestone
Description
Description
Safari 14 misses some core APIs we rely on in our web vitals instrumentation, requiring us to ship outdated code or apply some annoying workarounds:
performance.timeOrigin- this was introduced in Safari 15. Right now, we fall back toperformance.timing?.navigationStart, which a) is deprecated and b) adds ~100bytes of otherwise unnecessary codevisibilitychangeevent - this event is used byweb-vitalsin all code paths after they dropped Safari 14 support. We have to patch our vendored version of the lib to also listen topagehideevents for Safari 14, sincevisibilitychangeisn't fully supported by 14.0. Removingpagehideallows us to save some bytes and also streamline our own pagehide listening logic in the SDK in other places.
I therefore propose we drop support for Safari 14.x and Safari iOS 14.x. Global usage for these versions is around 0.45% at the time of writing.