From a069560e3dd6fa4acf413409d56c5fbb6e9f8808 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 16 Feb 2022 10:40:13 -0500 Subject: changed incremental loading to generate update requests more quickly. turned on local browser caching of server responses (eg, images) --- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 8 +++++--- src/client/views/nodes/DocumentView.tsx | 2 +- src/client/views/nodes/WebBox.tsx | 5 ++--- src/server/server_Initialization.ts | 7 +++++++ 4 files changed, 15 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 85187c347..689b6a1b6 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1302,7 +1302,7 @@ export class CollectionFreeFormView extends CollectionSubView this._numLoaded; get doLayoutComputation() { const { newPool, computedElementData } = this.doInternalLayoutComputation; @@ -1562,8 +1562,10 @@ export class CollectionFreeFormView extends CollectionSubView { - this._numLoaded++; - this._numLoaded < this.views.length && setTimeout(this.incrementalRender, 25); + if (!LightboxView.LightboxDoc || LightboxView.IsLightboxDocView(this.props.docViewPath())) { + this._numLoaded++; + } + this._numLoaded < this.views.length && setTimeout(this.incrementalRender, 1); }) children = () => { diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index b537cd370..9450aedb5 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -865,7 +865,7 @@ export class DocumentViewInternal extends DocComponent {(this.isContentActive() && !SnappingManager.GetIsDragging()) || !thumb ? (null) : - server.use(next)); -- cgit v1.2.3-70-g09d2