1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-01 07:36:18 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/features/LazyLoading.tid
2021-10-22 14:35:25 +01:00

31 lines
1.1 KiB
Plaintext

created: 20140206214608586
modified: 20211009145417525
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]], just image tiddlers or all non-system tiddlers can be subject to lazy loading
* When running [[TiddlyWiki in the Sky for TiddlyWeb]], all tiddlers are subject to lazy loading
See the [[Lazy Loading Mechanism|https://tiddlywiki.com/dev/#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 --listen root-tiddler=$:/core/save/lazy-images
```
To apply lazy loading to all non-system tiddlers use this command:
```
tiddlywiki --listen root-tiddler=$:/core/save/lazy-all
```