posthog-js icon indicating copy to clipboard operation
posthog-js copied to clipboard

Lighthouse check: Registers an unload listener

Open jtaaa opened this issue 4 years ago • 4 comments

Just saw this little warning in Lighthouse after adding PostHog to my personal website. Not sure if this is a concern but I thought I'd make it known!

Screenshot 2021-08-01 at 9 33 07 AM

jtaaa avatar Aug 01 '21 13:08 jtaaa

its disable browser bfcache Back/forward cache

https://github.com/PostHog/posthog-js/blob/9fa7cb00471c974686fa4e43fe6ab49976772380/src/posthog-core.js#L274

straxico avatar Feb 11 '22 19:02 straxico

+1 I'm getting this audit warning too.

renatorib avatar Mar 31 '22 20:03 renatorib

I only have this warning to remove from my website to have fireworks on Lighthouse!

Lighthouse score

Can you fix this ?

Thanks !

johackim avatar Apr 30 '22 21:04 johackim

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

posthog-bot avatar Apr 30 '24 09:04 posthog-bot

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

posthog-bot avatar May 15 '24 09:05 posthog-bot