Necesito identificar, cuando el usuario va a una nueva página, y si es lento, identificar si el usuario hace clic en el navegador "detiene".
// remove the timer when the pages finally exits. window.addEventListener("unload", function (event) { closesWaitingNewPage(); }) window.addEventListener("beforeunload", function (event) { if (typeof checkChangesBeforeLoad != 'undefined') { return checkChangesBeforeLoad(event); } });Entonces, muestro un cargador para mi usuario, esperando cargar una nueva página. Pero, si cancela en el navegador, mi cargador aún se muestra.
¿Cómo puedo resolver?