feat(scripts): fix bfcache issues

This commit is contained in:
wanhose 2021-12-07 17:15:28 +01:00
parent ddeab66482
commit 14e83d8a4f

View File

@ -182,7 +182,7 @@ const querySelectors = () =>
}); });
/** /**
* @description Listens DOM complete state * @description Cleans DOM again after all
* @listens document#readystatechange * @listens document#readystatechange
*/ */
@ -196,6 +196,13 @@ document.addEventListener("readystatechange", () => {
}); });
}); });
/**
* @description Fix bfcache issues
* @listens window#unload
*/
window.addEventListener("unload", () => {});
/** /**
* @description Setups everything and starts to observe if enabled * @description Setups everything and starts to observe if enabled
*/ */