NO BUG: Frontend stops loading JS with code element and enabled code execution

Browser: FF 150
OS: macOS 12.7.6

I’ve added a code element with (currently) only an iframe element, enabled code execution and signed code.

Enabled code execution: frontend stops loading javascript.

Disabled code excecution: js will be loaded normally:

FYI, main.js comes from my child theme.


EDIT:
also appears if I use a shortcode element with php output:

// my code:
add_shortcode('video_modal_iframe', function() {
  return '<iframe id="video-iframe" src="" allowfullscreen>';
});

Any Ideas about that?

Hi Lars,
As far as I know, iframes require a closing </iframe> tag:

<iframe id="lalala"></iframe>

Hi @timmse,

oh dude you’re right.
Sometimes you can’t see the simplest things anymore.. :see_no_evil_monkey:

Thanks for the hint.

1 Like