The end result works but it inserts the script tag in my body content rather than the head.
Anyone know how to add js to the head from within a block's template?
Actually, the default c5 jquery-ui file works fine. Is there a way to load that?
-pulls the default c5 jquery-ui
-displays inline script tag
-works front end and while logged in backend
Only recently though as it was something that I noticed a couple of sites back when trying to include extra js from the template.
I usually then just take whatever file I wanted to include and copy paste into the view.js just to save the hassle of loading in extra js from the head on a conditional if statement
you can place script anywhere on your page even inside <div>
google is even advocating people to put <script> at the end of the html, even after the </html> tag, to speed up loading of the website
Since the blocks controller.php file can insert custom scripts into the head of the page I starting thinking there was a way to do the same thing but from the view.php file instead...
Maybe I was just stuck on the idea of the code looking pretty? haha