this.pausePriorityQueue = [];
this.afterProcessingQueue = [];
this.processing = true;
+ this.pauseAfterSplash = true;
+ this.pauseAfterSplashDuration = 10000;
this.init();
}
$this.resume();
}
}, 1000);
+
+ $(this.fluidbook).on('fluidbook.splash.hide', function () {
+ setTimeout(function () {
+ $this.pauseAfterSplash = false;
+ $this.pause($this.pauseAfterSplashDuration, true);
+ }, $this.pauseAfterSplashDuration);
+ });
},
pause: function (during, reset) {
return;
},
+ isEnabled: function () {
+ if (this.fluidbook.shortLoading) {
+ return false;
+ }
+ if (this.pauseAfterSplash) {
+ return true;
+ }
+ return !this.fluidbook.settings.priorityToPreload;
+ },
+
executeWhenNetwork: function (f, highPriority) {
- if (this.fluidbook.shortLoading || this.fluidbook.settings.priorityToPreload) {
+ if (!this.isEnabled()) {
f();
return;
}