1Password in Chrome/Brave: ~500ms delay when application calls .focus()
Hello! I'm tracking down a performance issue in a JavaScript application I'm working on, and it appears that 1Password may be the culprit. This just started happening recently, though I can't tell you exactly which version I had prior.
My application uses Svelte (3.46.4) and the issue is noticed when I launch a modal. Upon mounting the modal, I call document.getElementById("searchbox").focus();
\
[Edit: I've also tried removing the call and manually setting an "autofocus" attribute on the same input and the delay/behavior is identical - 1P is getting hung up whenever a focus event is called regardless of explicit or implicit]
This is where the issue lies -- when the 1Password extension is enabled, there is a ~500ms delay before my modal becomes visible. I've traced that to 1Password's "injected.js" where it's calling Ea._onInputFocus and EA._getSuggestions. Those calls are taking substantially all of the delay.
Any ideas what might have changed? I've been using and developing this application for months and all has been peachy until just now. Not sure why those calls are now blocking :(
If any suggestions, do let me know! Alas I'll have to disable 1Password from this browser for the time being until this can be resolved.
And of course if I'm somehow barking up the wrong tree, any guidance is appreciated.
Many thanks in advance.
1Password Version: 8.10.22
Extension Version: 2.18.1
OS Version: macOS 14.1.1
Browser: Brave Version 1.61.104 Chromium: 120.0.6099.115
Comments
-
Hello @nclh! 👋
I'm sorry that you're running into performance issues with your Javascript web app. So that the team can help further, I'd like to ask for a console log from your end: https://support.1password.com/cs/extension-console-log/
Attach the log to an email message addressed to
support+forum@1password.com
.With your email please include:
- A link to this thread: https://1password.community/discussion/143646/1password-in-chrome-brave-500ms-delay-when-application-calls-focus#latest
- Your forum username: nclh
- A link to a webpage hosting the javascript web app if possible.
You should receive an automated reply from our BitBot assistant with a Support ID number. Please post that number here. Thanks very much!
-Dave
0 -
Thank you @nclh, I have located your support ticket and I see my colleague has been in touch.
Let's continue the discussion there.
ref: ZGX-37746-758
0