How to include external JavaScript in place? We include an external script from a vendor and the URL doesn't end in .js. It returns JavaScript that creates a widget in place. I was able to fake it out by adding a '&amp;js=.js' parameter but it still rendered with the other scripts.
Is there an option for {% js %} to render in place? A {% js at right-here %}?
In your template you can use the &lt;script src=&quot;&quot;&gt; tag as it's a combination of the html and twig. So it will load your external javascript files.
Also you can use the inline javascript or javascript file using this tag {% js %} like below.
{# Use for JS file #}
{% js &quot;/assets/js/script.js&quot; %}

{# Use as a JS code block #}
{% js %}

console.log(&quot;hello World&quot;);    

{% endjs %}