1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-11 18:50:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/features/LazyLoading.tid

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-02-06 22:21:03 +00:00
created: 20140206214608586
modified: 20151105122712982
2014-09-12 15:05:37 +00:00
tags: Features
2014-02-06 22:21:03 +00:00
title: LazyLoading
type: text/vnd.tiddlywiki
Ordinarily with TiddlyWiki, the full content of all tiddlers is embedded into the main HTML file. Lazy loading refers to the technique of only embedding metadata about the tiddler (in other words all fields except the ''text'' field), and requesting the body from the server when required.
Lazy loading can be used in two configurations:
* When running [[TiddlyWiki on Node.js]], just image tiddlers or all non-system tiddlers can be subject to lazy loading
2014-02-06 22:21:03 +00:00
* When running [[TiddlyWiki in the Sky for TiddlyWeb]], all tiddlers are subject to lazy loading
See the LazyLoadingMechanism for details of how lazy loading is implemented.
! Lazy loading under Node.js
To start TiddlyWiki with lazy loading for image tiddlers use this command:
```
tiddlywiki --server 8080 $:/core/save/lazy-images
```
To apply lazy loading to all non-system tiddlers use this command:
2014-02-06 22:21:03 +00:00
```
2015-11-05 15:09:40 +00:00
tiddlywiki --server 8080 $:/core/save/lazy-all
2014-02-06 22:21:03 +00:00
```
! Lazy loading under TiddlyWeb
With the current configuration, lazy loading is enabled by default.