perf: don't load properties and classes for initial data

This commit also fixed the issue that some pages such as "Status" will
be shown as lower cased.
This commit is contained in:
Tienson Qin
2024-02-07 03:43:45 +08:00
parent 42c1785bb8
commit 140287e3ea
3 changed files with 24 additions and 18 deletions

View File

@@ -576,9 +576,15 @@
(widgets/demo-graph-alert))
(cond
(or db-restoring? (not indexeddb-support?))
(not indexeddb-support?)
nil
db-restoring?
[:div.space-y-2
(shui/skeleton {:class "h-8 w-1/3 mb-8"})
(shui/skeleton {:class "h-6 w-full"})
(shui/skeleton {:class "h-6 w-full"})]
:else
[:div
{:class (if (or onboarding-and-home? margin-less-pages?) "" (util/hiccup->class "mx-auto.pb-24"))