Aligns our behavior to match Firefox, Safari, and the spec. Allows potential future simplification of code: there have been a number of bugs in the past related to using during unload.


Specification link

Unknown standards status - check spec link for status

Status in Chromium


Proposed (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.



Note: Edge currently allows document.write while a document is unloading.

Last updated on 2021-12-19