1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/features/LazyLoading.tid
2014-09-12 16:05:37 +01:00

28 lines
1015 B
Plaintext

created: 20140206214608586
modified: 20140912141710950
tags: Features
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]], image tiddlers can be subject to lazy loading
* 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 run TiddlyWiki with lazy loading for images, use this alternative ServerCommand to start the server:
```
tiddlywiki --server 8080 $:/core/save/lazy-images
```
! Lazy loading under TiddlyWeb
With the current configuration, lazy loading is enabled by default.