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

+1
View File
@@ -69,6 +69,7 @@ async function load() {
shouldDelay: idx < 5, // only animate first 5 sections
$element: $(section),
}));
$('.page-loader').hide();
console.log('done! %d ms', new Date().getTime() - start.getTime());
for (const { $element, shouldDelay } of sections) {
$element.addClass('visible');