diff --git a/snippets/shx-loading-screen.liquid b/snippets/shx-loading-screen.liquid index 8ef8d5e..7d2573d 100644 --- a/snippets/shx-loading-screen.liquid +++ b/snippets/shx-loading-screen.liquid @@ -80,6 +80,11 @@ window.addEventListener("load", function() { hideLoadingScreen(); }); + + // This event is triggered when the page is displayed, including back navigation + window.addEventListener("pageshow", function(event) { + hideLoadingScreen(); + }); }); {% endif %}