I can see the problem in your website, please check this:
Edit the layout "test-js-layouts-problem" hidden link
I see a lots of JS errors, see screenshot js-errors.JPG
It is abnormal, there isn't the same problem in my localhost with a fresh wordpress installation, using the same codes as your website, see screenshot layout.JPG
2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, deactivate all custom JS/PHP codes, and test again
You are right, I can see the problem in my localhost.
The correct way to add the scripts are these:
1) Edit the content template, move your custom JS codes into section "JS editor".
Notice, you don't need to use "script" wrapper:
<script type="text/javascript">
</script>
just put the JS codes in to "JS editor" directly.
2) In content of content template, display links of other external JavaScript file:
But there is another problem, when you edit the layout again, the external JavaScript file codes of content template cell will be lost, can you confirm it in your website, I will escalate this problem.
Currently, you will need to setup the external JavaScript file codes by editing the content template directly.
You are correct. The external javaScript file codes are lost when you edit the content template via the layout. I would be grateful if you could escalate this issue please.
Here is the feedback from our 2nd tier supporters:
This is a known issue, for security reason it will not be fixed, as WP standard, the script tag will be removed.
If I enqueue the external js files from my functions.php, is there a way to link the call to either a wordpress page id or to the template id? I don't want to load the functions for every page.