mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: speed up page load
This commit is contained in:
15 files changed
+80
-106
No files matched your search
@@ -17,7 +17,6 @@ declare global {
|
||||
}
|
||||
|
||||
const start = new Date();
|
||||
window.UserContext = JSON.parse(window.UserContext);
|
||||
|
||||
function buildSequence(pages, type) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
@@ -52,7 +51,7 @@ async function animate() {
|
||||
}
|
||||
}
|
||||
|
||||
async function load() {
|
||||
export async function initPageLoader() {
|
||||
const pageLoader = new PageLoader();
|
||||
|
||||
const currentPageName = document.documentElement.getAttribute('data-page');
|
||||
@@ -99,5 +98,3 @@ async function load() {
|
||||
$('.section').trigger('vjLayout');
|
||||
$(document).trigger('vjPageFullyInitialized');
|
||||
}
|
||||
|
||||
load();
|
||||
Reference in new issue
Block a user