releases.shpreview
PostHog/PostHog JS/posthog-js@1.376.2

posthog-js@1.376.2

1.376.2

Patch Changes

  • #3667 cafa9cc Thanks @pauldambra! - fix(replay): stop polling preload-as-style <link> elements forever. Session recorder treated <link rel="preload" as="style" href="*.css"> as if it were a stylesheet and waited for link.sheet to populate. Per spec preload links never instantiate a CSSStyleSheet, so the wait timed out, re-serialized the link, scheduled another wait, and leaked a load listener on every cycle — multiplying further on every real load event. Pages with Next.js-style CSS preloads accumulated thousands of active polling chains, saturating the main thread and freezing the tab on refocus (2026-05-26)
  • Updated dependencies []:
    • @posthog/types@1.376.2
    • @posthog/core@1.29.11

Fetched May 26, 2026