30c70a6ecd
Improves EPUB close performance. By wrapping with requestIdleCallback(), we ensure: 1. remove() won't be called right away, so the DOM elements being removed won't be visible and won't trigger a relayout. 2. remove() won't be called while there are pending UI events, so it shouldn't cause the UI to hang/lag/stutter. Combined, these two improvements make the UI hang when closing a large EPUB mostly imperceptible on my machine. Addresses #3321; doesn't completely fix it because there's likely more to be done on the reader side to optimize the DOM. |
||
---|---|---|
.. | ||
scaffold | ||
zotero | ||
zotero-platform |