Blocked autofocusing on a element in a cross-origin subframe.
-
I’m trying to load a script in a popup. After figuring out how to exclude this script from WP rocket, at least I have the content loading IN the popup on click instead of loading automatically in the footer without any input.
However, this script has its own consent dialog — at least I think that’s what’s causing this — and I get the following error in the console with the popup:
Blocked autofocusing on a element in a cross-origin subframe.
Interaction with the popup is blocked and there’s a sort of unstyled small window with a scrollbar off to the side. This happens in Chrome and Edge but, for some reason, the popup loaded fine in Firefox.
On mobile, I found that I was getting automatically redirected to the popup site if I loaded the page with the popup — so I’ve disabled it for now.
Any way to get this to work? If not, I’ll just stick the script in its own page and forget about a popup.
- You must be logged in to reply to this topic.