mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-02 01:06:47 +00:00
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:
10
core/ui/ViewTemplate/lazy-loading.tid
Normal file
10
core/ui/ViewTemplate/lazy-loading.tid
Normal 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%>
|
||||
Reference in New Issue
Block a user