Zotero Connector: "SingleFile is hooking the IntersectionObserver API..." warning

Hello!

I'm running the Zotero Connector extension in Chrome. I've discovered that on many webpages (for instance, those using CodeMirror instances like https://observablehq.com/@fil/hello-spectral-js), I get a warning in my console: "SingleFile is hooking the IntersectionObserver API to detect and load deferred images." I'm pretty sure I've tracked down the cause: Zotero Connector is using SingleFile in such a way that SingleFile installs hooks into DOM features and feels the need to warn the console about it when the DOM features are used.

This wouldn't generally be a big deal, except 1. I'm developing an application which always prompts this warning, which is annoying and noisy, and 2. I never use any SingleFile-related features in Zotero anyway.

So I wonder:

1. Could Zotero only load SingleFile when SingleFile is actually needed, thereby preventing these warnings? (FWIW, these warnings also make me wonder if SingleFile is incurring a performance penalty through its shenanigans on every page I visit.)

2. If not, is there (or could there be) a setting to disable SingleFile-related features in Zotero Connector?

Thanks in advance for any help!

Cheers & warm wishes,
Josh
Sign In or Register to comment.