Embedded Scripts are activated on some environments and not on others
See original GitHub issueRelates to #186.
But on another colleagues PC the <script>
Tags get executed while loading, so the workaround results in having them executed twice. It was testet in Firefox and Chrome and the same behavior in both Browsers.
What could be the reason for that? And is there a way to avoid the double execution?
I try to catch all executions with the afterscriptexecute
Event of the document
but I guess I’m too late when the workaround controller (from @xtr3me). Any Ideas what could cause that?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Evaluate script tags from turbo streams · Issue #186 - GitHub
It seems that <script> tags in turbostream templates are not evaluated (at least not when appending). Is this a bug, or expected behaviour?...
Read more >Troubleshoot and Test EEM Scripts - Cisco
This document provides useful information on how to test and verify EEM with CLI show commands, and also explains some common failure scenarios ......
Read more >Error with embedding javascript form (Active Campaign) on .NET
I'm trying to embed a 'simple embed' javascript form from Active Campaign on a .NET environment (custom CMS I think). I got several...
Read more ><iframe>: The Inline Frame element - HTML - MDN Web Docs
The <iframe> HTML element represents a nested browsing context, embedding another HTML page into the current one.
Read more >Environments and deployments - GitLab Docs
Some variables cannot be used as environment names or URLs. ... In this case, you don't know the URL before the deployment script...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that is the goal @JulianFeinauer 👍
Am I mistaken or the issue should already be resolved? I’m using turbo-rails (7.1.1) and I’m still getting an issue with javascript not getting executed:
basic HTML gets loaded, but the JS is not run (the chart appears if I manually run the JS):
Or is this not support to work without adding Stimulus?