core: contest: detail fix

This commit is contained in:
undefined committed 2021-10-26 15:00:07 +08:00
1 parent 7e8a90a6b2
commit a988445597
10 files changed
+10 -31

No files matched your search

-3
View File
@@ -47,7 +47,6 @@ async function load() {
...buildSequence(includedPages, 'after'),
...buildSequence(currentPage, 'after'),
];
// eslint-disable-next-line no-restricted-syntax
for (const { page, func, type } of loadSequence) {
const ts = new Date().getTime();
try {
@@ -69,13 +68,11 @@ async function load() {
$element: $(section),
}));
console.log('done! %d ms', new Date().getTime() - start.getTime());
// eslint-disable-next-line no-restricted-syntax
for (const { $element, shouldDelay } of sections) {
$element.addClass('visible');
if (shouldDelay) await delay(50);
}
await delay(500);
// eslint-disable-next-line no-restricted-syntax
for (const { $element } of sections) $element.trigger('vjLayout');
$(document).trigger('vjPageFullyInitialized');
}