Option to put registered scripts in footer, or where you would like
Posted 25 April 2012 - 11:36 PM
In order to do this with Yii, I've had to set the script map entries for jquery and jquery.yiiactiveform.js to false. It would be great if there was an option to have Yii place them before the closing body tag, and/or a way of manually being able to say where to place them in the template. Right now, it places before the title tag
(another very minor thing for us code indention perfectionists..if you have the tags under HEAD indented, it will screw up the indention with how it adds the code/line break in)
Posted 01 May 2012 - 03:18 AM
Can that be set globally, to apply to the JS and CSS that Yii is adding automatically? It's just a pain to keep things organized. I don't like all these extra HTTP requests, so I am trying to combine JS and CSS where I can too. I may just give in and put jQuery in the header.
Posted 01 May 2012 - 05:24 AM
For a current project, I ended up writing my own script tags at the end of body tag, except html5shiv of course.
@jwinn on a side note, does putting your CSS in the footer work?