From ab5e5795e88892b5687885c8ead8d6959082399b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 3 May 2018 18:27:17 +0100 Subject: [PATCH] Fix issue with lazy loading temporary tiddlers Fixes #3235 --- core/modules/syncer.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/core/modules/syncer.js b/core/modules/syncer.js index c5aadf28a..d87e8371a 100644 --- a/core/modules/syncer.js +++ b/core/modules/syncer.js @@ -271,13 +271,16 @@ Syncer.prototype.handleLazyLoadEvent = function(title) { // Don't lazy load the same tiddler twice var info = this.tiddlerInfo[title]; if(!info || !info.hasBeenLazyLoaded) { - this.createTiddlerInfo(title); - this.tiddlerInfo[title].hasBeenLazyLoaded = true; - // Queue up a sync task to load this tiddler - this.enqueueSyncTask({ - type: "load", - title: title - }); + // Don't lazy load if the tiddler isn't included in the sync filter + if(this.filterFn.call(this.wiki).indexOf(title) !== -1) { + this.createTiddlerInfo(title); + this.tiddlerInfo[title].hasBeenLazyLoaded = true; + // Queue up a sync task to load this tiddler + this.enqueueSyncTask({ + type: "load", + title: title + }); + } } };