unloadEventStart

The unloadEventStart read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's unload event handler starts.

MDN Reference