diff --git a/resources/skins.citizen.scripts/skin.js b/resources/skins.citizen.scripts/skin.js index 524edc10..4a3de89d 100644 --- a/resources/skins.citizen.scripts/skin.js +++ b/resources/skins.citizen.scripts/skin.js @@ -128,6 +128,11 @@ function main( window ) { // Set up loading indicator document.documentElement.classList.add( 'citizen-loading' ); }, false ); + + window.addEventListener( 'unload', function () { + // unset loading indicator + document.documentElement.classList.remove( 'citizen-loading' ); + }, false ); } if ( document.readyState === 'interactive' || document.readyState === 'complete' ) {