zotero/chrome/content
Abe Jellinek 30c70a6ecd Defer removing tab content
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.
2023-08-21 12:20:57 -04:00
..
scaffold Scaffold: Prompt to save before resetting 2023-07-31 09:44:20 -04:00
zotero Defer removing tab content 2023-08-21 12:20:57 -04:00
zotero-platform making toolbar accessible to the keyboard - initial conversion (#3188) 2023-07-05 03:17:07 -04:00