batchDOMReads
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/app/performance/lazyRenderingUtils / batchDOMReads
Function: batchDOMReads()
batchDOMReads<
T>(readCallback: () =>T[]):Promise<T[]>
Defined in: utils/app/performance/lazyRenderingUtils.js:12
Batch DOM reads to avoid layout thrashing
Type Parametersβ
Tβ
T
Parametersβ
readCallbackβ
() => T[]
Callback that reads from DOM
Returnsβ
Promise<T[]>
Promise with read results