From 00e7a35457cd949cc31bbc06447570fdcde8328d Mon Sep 17 00:00:00 2001 From: Tony Air Date: Thu, 18 Jul 2019 13:07:11 +0700 Subject: [PATCH] Spinner update --- src/js/_main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/_main.js b/src/js/_main.js index 5a479be..072dc92 100755 --- a/src/js/_main.js +++ b/src/js/_main.js @@ -349,6 +349,12 @@ const MainUI = (($) => { MainUI.init(); }); + $(W).on('beforeunload', () => { + Spinner.show(() => { + $Body.removeClass('loaded'); + }); + }); + W.MainUI = MainUI; return MainUI;