zotero/chrome
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
..
content Defer removing tab content 2023-08-21 12:20:57 -04:00
locale Merge new English strings 2023-08-07 16:07:56 -04:00
skin/default Update reader prefs 2023-08-07 16:07:55 -04:00