Forum Discussion

dispatchrabbi's avatar
dispatchrabbi
New Member
2 hours ago

Extension slows page even when irrelevant DOM elements are added

Hello! I've noticed that the extension slows down the webapp I'm working on quite a lot even though the vast majority of elements on the page shouldn't be relevant to the extension.

The webapp in question involves displaying SVGs with lots of elements (660,000+) inline on the page, and (for various reasons) we start with an more-or-less empty <svg> tag on the page, and then later fill in the contents using `setHTML` or `innerHTML`.

When that happens, I can see on a performance profile that there is a long pause caused by the 1Password extension due to (presumably) it inspecting all the inserted elements, even though they are all SVG elements and are thus not relevant to the extension.

The length of the slowdown depends on the size of the SVG that's been inserted, but our SVGs are always going to be quite large, since they depict circuit boards, which are multi-layered and can get very complex. At the point that I noticed it, the slowdown was taking more than 43 seconds. (I have a profile exported if it would be useful to the extension devs, but the forums won't let me upload files or post images.)

Any chance you could you look into this? I haven't been able to find any way to tell the extension to ignore part of a page, and additionally it seems like the extension should ignore SVG elements by default. Thanks!

No RepliesBe the first to reply