In Yesod/Haskell, I'd like to call addScriptRemote and have it add the <script>
tag in the head section. As is, it seems to add the script only to the body section.
Asked
Active
Viewed 279 times
6
1 Answers
6
Where scripts get placed will depend on jsLoader. If you want to make a change for a specific script, you can use toWidgetHead [hamlet|<script src=...">|]
.

Michael Snoyman
- 31,100
- 3
- 48
- 77
-
Can I change the `jsLoader`? – ptkato Oct 21 '15 at 23:50
-
Yes, when declaring your Yesod instance – Michael Snoyman Oct 22 '15 at 03:33