diff --git a/global/globalScript.js b/global/globalScript.js index 114ef32..e2a9479 100644 --- a/global/globalScript.js +++ b/global/globalScript.js @@ -180,6 +180,16 @@ window.addEventListener("resize", function() { } }) + +window.addEventListener("pageshow", (event) => { + if (event.persisted) { + // reload page to clear unwanted cache. + // for some reason the loading screen stays + // permanently open without this. + window.location.reload(); + } +}); + let prevAnimationState = isAnimating /*