Lazy Loading does not pull requested tiddlers

198 views
Skip to first unread message

Tony Grosinger

unread,
Jan 18, 2017, 12:22:11 PM1/18/17
to tiddl...@googlegroups.com

I am running my TiddlyWiki on NodeJS (v4.4.7) and because of a bunch of images I have added the load time has been slowing down. I am exploring enabling Lazy Loading but having some trouble getting it working.
When I enable lazy loading, the search seems to work just fine, however images never get loaded properly. Here is the command I am using to start my tiddlywiki:

/usr/bin/node /usr/lib/node_modules/tiddlywiki/tiddlywiki.js /home/tony/myTW \
    --server 8080 $:/core/save/lazy-images text/plain text/html myUsername myPassword

If I change the $:/core/save/lazy-images to $:/core/save/lazy-all then everything seems to be broken and no tiddler data is shown. Any idea why it is not successfully pulling down the lazily loaded content?

Tony Grosinger

unread,
Jan 19, 2017, 10:55:10 PM1/19/17
to TiddlyWiki
Here are some additional details, hopefully they will be helpful because I am quite stumped.

In this log, I have just refreshed the page and nothing else. There is a 404 error coming from the PutSaver, however I saw a similar error (but 405) coming from tiddlywiki.com, so I am not sure if that is significant.

When I attempt to open an image tiddler nothing shows up in the log and the image is not displayed. If I try to edit the image I get an error that it is an invalid URI.


$:/core/modules/utils/logger.js:30 TiddlyWebAdaptor: Getting status
$:/core/modules/utils/logger.js:30 TiddlyWebAdaptor: Status: {"username":"myuser","space":{"recipe":"default"},"tiddlywiki_version":"5.1.13"}
$:/core/modules/utils/logger.js:30 syncer-browser: Retrieving skinny tiddler list
$:/core/modules/savers/put.js:33 OPTIONS https://tw5.mydomain/ 404 (Not Found)
PutSaver @ $:/core/modules/savers/put.js:33
exports.create @ $:/core/modules/savers/put.js:78
(anonymous) @ $:/core/modules/saver-handler.js:122
(anonymous) @ (index):14323
$tw.utils.each @ (index):13654
$tw.modules.forEachModuleOfType @ (index):14322
SaverHandler.initSavers @ $:/core/modules/saver-handler.js:120
SaverHandler @ $:/core/modules/saver-handler.js:30
exports.startup @ $:/core/modules/startup.js:105
$tw.boot.executeNextStartupTask @ (index):15535
$tw.boot.executeNextStartupTask @ (index):15539
$tw.boot.executeNextStartupTask @ (index):15539
$tw.boot.startup @ (index):15492
(anonymous) @ (index):15641
$tw.boot.decryptEncryptedTiddlers @ (index):14920
$tw.boot.boot @ (index):15639
_boot @ (index):15648
(anonymous) @ (index):15658
$:/core/modules/utils/logger.js:30 syncer-browser: Dispatching 'save' task: $:/StoryList

Tony Grosinger

unread,
Jan 19, 2017, 11:19:36 PM1/19/17
to TiddlyWiki
To continue my testing I created a brand new tiddlywiki and started it using this command:

```
tiddlywiki testwiki --verbose --server 8082 $:/core/save/all text/plain text/html "" "" "0.0.0.0"
```

I saved an image, then reloaded. The image loaded just fine.
Next I changed the command to this:

```
tiddlywiki testwiki --verbose --server 8082 $:/core/save/lazy-all text/plain text/html "" "" "0.0.0.0"
```

After reloading the page again I was no longer able to load the image. The tiddler existed, but the image would not load. Just to be thorough I created a new image while already in lazy mode. After reloading the page I was again not able to open either image, including the newly created one.

I am beginning to become suspicious that something is broken in lazy loading. Any suggestions of things I should try?

BJ

unread,
Jan 20, 2017, 2:17:47 AM1/20/17
to TiddlyWiki
Hi Tony,

there is a fix for a lazy bug in the next release, maybe it will solve your problem?

https://github.com/Jermolene/TiddlyWiki5/issues/2511

all the best BJ

Tony Grosinger

unread,
Jan 20, 2017, 11:56:40 AM1/20/17
to TiddlyWiki
Oh, good to know. Thank you. 
I wonder when the next release will be coming out...
Reply all
Reply to author
Forward
0 new messages