Attachment preview takes more than twice as long to show in Zotero 11 beta

The attachment preview in the item pane takes more than twice as long to show its first page in Zotero 11 beta as in Zotero 10, on the same computer with the same PDFs.

Versions: Zotero 10.0.8 (64-bit) and Zotero 11.0-beta.4+045d52044 (64-bit), Windows 11 Pro, display at 100 %. Both in new profiles with no plugins installed.

Steps to reproduce:
1. Start Zotero with no plugins.
2. Create a few items, each with one PDF: New Item > Journal Article, type a title, then Add Attachment > Attach File... and choose the PDF. I used these six arXiv papers:
https://arxiv.org/pdf/1706.03762v7
https://arxiv.org/pdf/1512.03385v1
https://arxiv.org/pdf/1412.6980v9
https://arxiv.org/pdf/1409.1556v6
https://arxiv.org/pdf/1810.04805v2
https://arxiv.org/pdf/1406.2661v1
3. In the item pane, collapse the Info and Abstract sections (click their headers), so that the Attachments section and its preview are in view.
4. Click an item without an attachment, then click one of the articles, and watch the preview in the Attachments section. Clicking the PDF attachment itself gives the same result.

What happens: in Zotero 11.0-beta.4 the first page appears about 1 second after the click. In Zotero 10.0.8 it appears after about 0.4 seconds.

I timed it with a script that does exactly these clicks (3 launches of each version, 24 clicks per launch on each kind of item). Median from the click to the first page drawn:
- clicking the article: 0.43 s in 10.0.8, 1.02 s in 11.0-beta.4
- clicking the PDF attachment: 0.44 s in 10.0.8, 1.06 s in 11.0-beta.4
Until the preview is fully shown: about 0.58 s in 10.0.8, about 1.2 s in 11.0-beta.4. The results hardly varied (within about 0.05 s of the median).

One more observation: in Zotero 11.0-beta.4, after setting dom.webgpu.enabled to false (Settings > Advanced > Config Editor), the next previews appeared as fast as in Zotero 10, without restarting: 0.39 s instead of 0.97 s until the preview is ready (16 clicks each). Setting it back to true made them slow again.

I mentioned the slowness briefly before in https://forums.zotero.org/discussion/134490 (about another preview problem).
Sign In or Register to comment.