Hello Mario, Thank you! when you say the hidden part is removed from DOM, does it mean the script inside the ELSE-part will not be run? In other words, if retain is set to no (default) and content is hidden, does still TW processes that script?
I think in TW, most of the case rendering process is the most time consuming process, if so I should not worry about cpu time TW needs to calculate the hidden part -by rendering I mean to calculate and display the results -by calculating, I mean to process the script like finding a prime number (time consuming) but do not display the number --Mohammad On Wednesday, March 20, 2019 at 3:24:01 PM UTC+3:30, PMario wrote: > > Hi Mohammad, > > Have a look here: https://tiddlywiki.com/#RevealWidget Especially the retain > parameter. > > TW has to calculate the condition for both widgets, _but_ the hidden > elements are removed from the DOM, by default. So if the content is hidden, > It won't cause any performance impact, since the DOM is empty. > > hope that helps > -mario > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/745407b9-7367-4131-9430-285f15bd6bb5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.