I have a macro <<tagVerticalTabsUnsorted>>
, which let’s me view all the tiddlers with a specific tag in one list.
It used to work without a glitch. Now that I have more than 1000 tiddlers and with several images, it takes too long to load the tiddler.
It shows the tiddler title, but not the content, like this.
If I leave the TW for a few minutes, it then loads then content automatically.
OR, if I open another tiddler or close a tiddler, this kicks the transclusion of the content work.
If I use a tag with only 5 tiddlers, this macro works fine. But when I have tens of tiddlers, it starts to slow down.
Kindly let me know how can I improve the performance of transclusion.
OR suggest an alternative way to show list of tiddlers with a specific tag, if tabs and transclusion cannot work with hundreds of tiddlers.
\define tagVerticalTabsUnsorted(defaultTid:"")
@@float:right;
<span>
{{||$:/core/ui/TagTemplate}}
</span>
@@
<$macrocall $name="tabs"
tabsList="[tag<currentTiddler>]"
default=<<__defaultTid__>>
state="$:/state/tab1"
class="tc-vertical"
template="$:/talha131/Template/VerticalTab"
retain="yes"
/>
\end
<$tiddler tiddler=<<currentTab>>>
<$link to={{!!title}}>
! {{!!title}}
</$link>
<$transclude mode="block" />
</$tiddler>
<$macrocall $name="tabs" tabsList="[tag<currentTiddler>]" default=<<__defaultTid__>> state="$:/state/tab1" class="tc-vertical" template="$:/talha131/
Template/VerticalTab" retain="yes" <---- THIS is the problem. /> \end
Macro
\define tagVerticalTabsUnsorted(defaultTid:"") @@float:right; <span> {{||$:/core/ui/TagTemplate}} </span> @@ <$macrocall $name="tabs" tabsList="[tag<currentTiddler>]" default=<<__defaultTid__>> state="$:/state/tab1" class="tc-vertical" template="$:/talha131/Template/VerticalTab" retain="yes" /> \end
Retaining the content when hidden can give poor performance since the hidden content requires refresh processing even though it is not displayed.
Thank you. I have tried retain="no"
, but the result is still the same. It still takes more than 30 seconds to load the tiddler.
I tried a different widget, toc
but the delay is still present, though the delay is much shorter than before. But it is not instantaneous.
<<toc-tabbed-internal-nav
tag:"fish-shell"
selectedTiddler:"$:/temp/tb5-tabbed-toc-example"
unselectedText:"Select a topic in the table of contents to the left.<br>Click the arrows to expand topics."
>>
I am running TW from nodeJS, which shows this slow behaviour. But the HTML file built from the tiddlers does not have any performance issue.
So my guess is, TW running on NodeJS has performance issue.
Thank you all of you. You people have fixed a major headache for me. Using
tiddlywiki --listen root-tiddler=$:/core/save/lazy-all
was the issue.
I replaced it with
tiddlywiki --listen root-tiddler=$:/core/save/lazy-images
and this fixed the issue.
I never guessed that lazy-all
could be the reason, because my TW used to work perfectly.