Combine @Script()
with AtHead()
and UseContition()
.
This is a quick, Orchard way to add the Bootstrap-recommended shims, for IE 8 only, to the Orchard CMS head
.
Script.Include("//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js")
.AtHead()
.UseCondition("lt ie 9");
Script.Include("//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js")
.AtHead()
.UseCondition("lt ie 9");
This SO Post discusses @Script
and this Orchard Issue mentions the UseCondition
.