ParentFull threadgprasanth·window.addEventListener('unload', function () { var now = Date.now(); while (Date.now() < now + 300) {} });View on HN