@Mohammad Q1: #1 is faster than #2 but the difference shouldn't be significant unless you are using a large amount of wikitext in the stylesheet. Also sometimes it is a choice between a dynamic stylesheet that use wikitext, vs other techniques to achieve the same thing. So the text/vnd.tiddlywiki type for the CSS might be the faster option overall.
Q2: It currently does not matter, as if any one stylesheet changes, the entire style tag for the document will be refreshed. However as expressed by Jeremy in the GH discussion on this topic, we might improve that to handle each stylesheet separately. So separating your dynamic and static CSS from now will mean less work later to take advantage of that eventual change. See https://github.com/Jermolene/TiddlyWiki5/discussions/5282#discussioncomment-207945 On Thursday, December 17, 2020 at 8:12:51 AM UTC+1 Mohammad wrote: > Tiddlywiki is enough flexible to have > > 1. stylesheet tiddler of type text/css > 2. stylesheet tiddler of type text/vnd.tiddlywiki (good for dynamic css) > 3. stylesheet as inline element using <style>..</style> html tag > > Q1. > I normally use the first two types. What is the best practice to have a > higher performance? Performance here means faster processing and what user > sense is to have the fastest response! > > Q2. > If I have to use dynamic styles, do you recommend having a stylesheet > tiddler of type text/vnd.tiddlywiki with all css properties? OR you > recommend to store all static CSS in a text/css tiddler and ONLY put the > dynamic part into another stylesheet tiddler of type text/vnd.tiddlywiki? > > > > 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/3fd245c4-e441-49a6-9b3b-fcc892b44757n%40googlegroups.com.

