mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
Mirror of https://github.com/zotero/zotero.git
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.
|
||
|---|---|---|
| .github | ||
| app | ||
| chrome | ||
| components | ||
| defaults/preferences | ||
| js-build | ||
| note-editor@8d34975e03 | ||
| pdf-worker@683b8e5b1a | ||
| reader@9857a5960d | ||
| resource | ||
| scripts | ||
| scss | ||
| styles@07810eddb0 | ||
| test | ||
| translators@ab8a83ebba | ||
| .babelrc | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| chrome.manifest | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| update.rdf | ||
| version | ||
Zotero
Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.
For more information on how to use this source code, see the Zotero documentation.