ui: add page loading (#274)

This commit is contained in:
pandadtdyy authored and GitHub committed 2021-12-24 16:43:43 +08:00
1 parent 10e0600b0b
commit 4fad7a20bd
3 files changed
+15

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ console.log(
document.addEventListener('DOMContentLoaded', async () => {
window.UiContext = JSON.parse(window.UiContext);
const PageLoader = '<div class="page-loader nojs--hide" style="display:none;"><div class="loader"></div></div>';
$('body').prepend(PageLoader);
$('.page-loader').fadeIn(500);
// eslint-disable-next-line camelcase
try { __webpack_public_path__ = UiContext.cdn_prefix; } catch (e) { }