Skip to content

Drop Support for Safari 14 #18707

@Lms24

Description

@Lms24

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 to performance.timing?.navigationStart, which a) is deprecated and b) adds ~100bytes of otherwise unnecessary code
  • visibilitychange event - this event is used by web-vitals in all code paths after they dropped Safari 14 support. We have to patch our vendored version of the lib to also listen to pagehide events for Safari 14, since visibilitychange isn't fully supported by 14.0. Removing pagehide allows 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions