Feat: loading indicator for tiddlers being lazy loaded (#8505)

* feat: basic loading

* feat: if condition

* feat: use palette

* refactor: remove css variable
This commit is contained in:
lin onetwo
2024-09-24 18:38:39 +08:00
committed by GitHub
parent 9a042c0130
commit a60e7165d2
3 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
title: $:/core/ui/ViewTemplate/lazy-loading
tags: $:/tags/ViewTemplate
\whitespace trim
<%if [<currentTiddler>has:field[_is_skinny]] %>
<!-- Render the text to trigger lazy-loading -->
{{||$:/core/ui/ViewTemplate/body/default}}
<!-- Indicator of loading state -->
<div class="tc-tiddler-lazy-loading" />
<%endif%>