Whilst investigating a performance hit I revisited discussions on the three similar functions which collapse content not currently required for viewing
- the native TW reveal widget
- the pure html details tag
- the Details plugin by telmiger which enhances the pure html details tag.
Discussion here… Details widget in core · Issue #3353 · TiddlyWiki/TiddlyWiki5 · GitHub
Almost every one of my 4000+ tiddlers has it’s content contained within the scope of a details tag (Telmiger’s version) - they are often paragraphs or even pages long with images and sometime videos and often I nest the details (I stopped using the reveal widget 2021 as it does not nest well).
So what I find myself increasingly asking pertains to the performance aspects of displayed and non-displayed content once a single file tiddlywiki has loaded.
I assume that tiddlers not in the storyriver list have a significantly reduced performance hit compared with when they are in the storyriver but also what about tiddlers that are in the storyriver list but are currently scrolled off screen?
What about the html display tag? Does it offer a similar performance advantage when closed?
Similarly the reveal widget?
I think these are fairly sensible questions for anyone with a large single file wiki to ask themselves - what layout choices and work practices will help mitigate performance cost of content I am not actively viewing at the current time?
Thanks in advance