21294 Posts in 5734 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » How to include only 1 Javascript file (ie modernizr.js) in <head>?
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 313 Views |
-
How to include only 1 Javascript file (ie modernizr.js) in <head>?

26 October 2011 at 3:52pm
Hi,
I'm wondering what is the proper way to include only 1 Javascript file in the
of the document. The file is Modernizr.js and it requires inclusion in the <head> of the document.<head>
I don't want to hardcode it into the template if I can avoid it, and I don't want to use
as I want the rest of the Javascript files to be placed at the end beforeRequirements::set_write_js_to_body(false);
.</body>
Under what circumstances would
be useful?Requirements::insertHeadTags(...)
Thanks very much.
VWD.
| 313 Views | ||
|
Page:
1
|
Go to Top |

