batchDOMWrites
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/app/performance/lazyRenderingUtils / batchDOMWrites
Function: batchDOMWrites()
batchDOMWrites(
writeCallback: () =>void):Promise<void>
Defined in: utils/app/performance/lazyRenderingUtils.js:42
Batch DOM writes to avoid layout thrashing
Parametersβ
writeCallbackβ
() => void
Callback that writes to DOM
Returnsβ
Promise<void>