Hi.
I’m new and apologies if this has been asked before. I found one posting, but I’m not sure if it’s about the same, and it has no reply:
I’m using Turbo Frames, and there’s a script element used only for one page, so rather than including it in the top-level element, I’d like to add it as part of navigating to that page.
According to the manual, this is supposed to be possible, but I’m not sure how. I’ve tried several ways, such as:
<html>
<head>
<script src="..."></script>
</head>
<body>
<turbo-frame id="...">
...
</turbo-frame>
</body>
</html>
and:
<turbo-frame id="...">
<html>
<head>
<script src="..."></script>
</head>
<body>
...
</body>
</html>
</turbo-frame>
However, none of them load the script.
Any help appreciated.
Regards,
Terje