Registers an unload listener - polyfills.js -> 1747

Anyone faced the issue “Registers an unload listener - polyfills.js” after test with Lighthouse?

Registers an unload listener

The unload event does not fire reliably and listening for it can prevent browser optimizations like the Back-Forward Cache. Consider using the pagehide or visibilitychange events instead.


Thanks in advanced

1 Like

Possibly see stackoverflow post:

I have also answered in that forum.

Make sure to test with the lighthouse in a production deployment. I believe that Angular may be adding extra event listeners that don’t end up in the production build, to help with local debugging/ live reloading etc.