• Resolved Cheryl

    (@tricheryltops)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @tricheryltops,

    Any content put inside our popups will always load into the footer.

    Scripts are a bit tricky as they can make or break a site when loaded at the wrong time. Our popup doesn’t have control over that.

    If it works on Firefox, there’s probably a setting on Chrome-based browsers that blocks the type of script you were trying to load. You can test further with other browsers such as Brave and Opera.

    Hope that helps. Let us know if you have other questions. ??

    Plugin Support Kim L

    (@kimmyx)

    Hi there,

    I’m going to mark this as resolved as we haven’t heard from you in a while.

    Feel free to create a new thread if you have other questions.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.