Thursday, April 10, 2008

Thoughts on the rampant abuse of HideWhenPlugin

HideWhenPlugin is great. But it wasn't really meant to be worked as hard as I'm working it. It means that bucket loads of DOM (every element for every template) gets created and then removed at render time by HideWhen. It's not too efficient and sometimes you see things flicker and disappear when rendering. I imagine it might be slow on a slow machine. So a solution would be to use something that hijacks getTemplateForTiddler such as can be found in an old MPTW (TagBasedTemplates) or over at TiddlyTools.com. Or perhaps invent a way to apply conditional logic to the templates before they are loaded into the DOM.

0 Comments:

Post a Comment

<< Home