diff options
| author | bobzel <zzzman@gmail.com> | 2022-02-16 10:40:13 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-02-16 10:40:13 -0500 |
| commit | a069560e3dd6fa4acf413409d56c5fbb6e9f8808 (patch) | |
| tree | 1aa3af089251e8adcb7fdad9304dda462f65ca17 /src/client/views/collections | |
| parent | 18ce93d480cea51087672649382f92c5462ae085 (diff) | |
changed incremental loading to generate update requests more quickly. turned on local browser caching of server responses (eg, images)
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
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<PanZoomDocument, P return { newPool, computedElementData: this.doFreeformLayout(newPool) }; } - @observable _numLoaded = 0; + @observable _numLoaded = 1; NumLoaded = () => this._numLoaded; get doLayoutComputation() { const { newPool, computedElementData } = this.doInternalLayoutComputation; @@ -1562,8 +1562,10 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P } incrementalRender = action(() => { - 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 = () => { |
