mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Syncer: add hidden setting for disabling lazy loading
This commit is contained in:
parent
6fa3e21116
commit
43d18e74d5
@ -21,6 +21,7 @@ Syncer.prototype.titleIsReadOnly = "$:/status/IsReadOnly";
|
|||||||
Syncer.prototype.titleUserName = "$:/status/UserName";
|
Syncer.prototype.titleUserName = "$:/status/UserName";
|
||||||
Syncer.prototype.titleSyncFilter = "$:/config/SyncFilter";
|
Syncer.prototype.titleSyncFilter = "$:/config/SyncFilter";
|
||||||
Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval";
|
Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval";
|
||||||
|
Syncer.prototype.titleSyncDisableLazyLoading = "$:/config/SyncDisableLazyLoading";
|
||||||
Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done";
|
Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done";
|
||||||
Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer
|
Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer
|
||||||
Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...
|
Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...
|
||||||
@ -87,7 +88,7 @@ function Syncer(options) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Listen out for lazyLoad events
|
// Listen out for lazyLoad events
|
||||||
if(!this.disableUI) {
|
if(!this.disableUI && $tw.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== "yes") {
|
||||||
this.wiki.addEventListener("lazyLoad",function(title) {
|
this.wiki.addEventListener("lazyLoad",function(title) {
|
||||||
self.handleLazyLoadEvent(title);
|
self.handleLazyLoadEvent(title);
|
||||||
});
|
});
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
created: 20191025100113266
|
||||||
|
modified: 20191025100113266
|
||||||
|
tags: [[Hidden Settings]]
|
||||||
|
title: Hidden Setting: Disable Lazy Loading
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
LazyLoading can be disabled by setting this value to `yes`
|
||||||
|
|
||||||
|
$:/config/SyncDisableLazyLoading
|
Loading…
Reference in New Issue
Block a user