rendajs / Renda

A modern rendering engine for the web.
https://rendajs.org
MIT License
10 stars 4 forks source link

refactor: Use beforeunload event instead of unload #917

Closed jespertheend closed 5 months ago

jespertheend commented 5 months ago

This appears to be functionally the same as the 'unload' event, except that this one isn't deprecated. An extra bonus is that 'beforeunload' doesn't deduct points from the 'best practices' section in lighthouse.