On Tuesday, May 27, 2014 7:19:49 PM UTC+2, Jeremy Ruston wrote: > Lazy loading in a TiddlyWiki context refers to the idea of packaging > "skinny" versions of some (or all) tiddlers into the HTML file. These > skinny versions lack the "text" field, making them much smaller than the > tiddler itself. Then, when the skinny tiddler is referenced from the > browser, it is automatically retrieved from the server. > When using lazy loading, skinny tiddlers are searched as usual, but the > content of their text fields won't be searchable until they have been > retrieved. >
I see. What do you mean by "some (or all)"? Is it the case that for every tiddler somewhere in the system there has to be a skinny version pre-loaded in a single HTML file? And if not, on what basis does the core determine which skinny tiddlers to pre-load? What if I were to write some backend for TiddlyWeb with an unknown quantity of tiddlers (it seems that the IMAP backend at http://cdent.tumblr.com/post/89803274/tiddlyweb-imap does this), does the metadata of these external tiddlers have to be packed into the TW file? > There are more details here: > > http://tiddlywiki.com/#LazyLoading > > Thank you, I read this some time ago but I must have skipped the important parts. I think I stopped after the statement that images could be lazy-loaded and decided that it's not what I'm after :) I should have read that again before asking, because it clearly says: So, the plan is to integrate the built in search with TiddlyWeb<http://tiddlywiki.com/#TiddlyWeb>'s > search API. The simplest approach is that any local search triggers an > asynchronous server side search. The results of the search would be > asynchronously loaded such that they would dynamically appear in the local > search results. > Will this include the search for metadata (=skinny tiddlers) also or just full-text searches? What's the status on this feature and what are entry points for implementing the querying parts? #LazyLoading mentions wiki.getTiddler() and wiki.getTiddlerText() but these are clearly not suitable for the task at hand because queries have to be passed down to the server in order to determine which items to load. I'm sure I'm able figure it out myself somehow, but if you can tell me ad hoc and without much work how I can get started this would save me a lot of time. Thanks! Best, Stefan -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
