Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
dispatchrabbi
1 day agoNew Member
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!
1 Reply
- Trevor_1P
Moderator
Hi dispatchrabbi,
It would definitely be helpful for us to take a look at the export you mentioned. Additionally, it would be helpful to collect a diagnostics report from the extension:
Send a diagnostics report (browser extension)
You can attach the files to an email message addressed to support@1password.com. With your email please include:
- A link to this thread: https://www.1password.community/discussions/developers/extension-slows-page-even-when-irrelevant-dom-elements-are-added/169314
- Your forum username: dispatchrabbi
You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!