Thank you Saq. So I will start a thread in the GitHub discussion board. Best wishes Mohammad
On Tue, Dec 15, 2020 at 12:44 PM Saq Imtiaz <[email protected]> wrote: > This is a good question and something I have been wondering about recently > while working on some performance improvements for Streams. > > In general terms, there is a cost to having wikitext in CSS tiddlers when > refreshing the styles in refreshStyles() > However most of the time this is negligible compared to the time taken by > the actual rendering process. > > This might make for a good dev discussion on Github. > > On Tuesday, December 15, 2020 at 8:37:53 AM UTC+1 Mohammad wrote: > >> A dynamic css can be like a below tiddler >> >> *Title*: my-custom-style >> *Tags*: $:/tags/Stylesheet >> >> [data-tags ~= "recipe"] .tc-tiddler-body { >> font-family: "Roboto"; >> font-weight: 500; >> font-size: 32px; >> line-height: 48px; >> } >> >> >> Now assume I need to apply the above styles to any tiddler has tag recipe >> AND also has a parent tag from american, european or asian all child of >> continental. >> >> so I may use below code as body of above my-custom-style tiddler >> >> <$list filter="[[continental]tagging[]]" variavle=sl> >> [data-tags*="<<sl>>"] [data-tags ~= "recipe"] .tc-tiddler-body { >> font-family: "Roboto"; >> font-weight: 500; >> font-size: 32px; >> line-height: 48px; >> } >> </$list> >> >> Note in real case I use much more complicated css here. >> >> The issue is as my wiki grows with children of continental parent tag I >> got a very large my-custom-style so my question is: >> 1. What is the performance impact using the above approach? >> 2. What simpler solution do you propose? >> >> I appreciate your input here. >> >> >> Best wishes >> Mohammad >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/9614cc2e-52b1-47d8-b619-f605f90f9d09n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/9614cc2e-52b1-47d8-b619-f605f90f9d09n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMBzqbnCvvRCvXid0u-ecDy10b6y9ss%3DuBR1bB1dYFvntw%40mail.gmail.com.

