I'm using jquery.curvycorners and typeface in a website and I want to have those scripts loaded in the head of the page (in order to have the page rendered correctly from start).
Now I'm introducing some Telerik components and the ScriptRegistrar is giving me a headache.
It seems it doesn't want to render at two places even if it's two separate groups.
Abbreviated example:
<% Html.Telerik().ScriptRegistrar().Scripts(s => s
.AddGroup("Group1", group => group
// jQuery
.Add("jquery-1.4.4.min.js")
.Add("jquery-ui-1.8.9.custom.min.js")
// Rounded corners
.Add("jquery.curvycorners.source.js")
.Combined(false)
.Compress(false)
))
.Render();
%>
</head>
<body id="body">
<div>
yadda yadda...
</div>
<% Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Compress(false)
.Combined(false))
.jQuery(false)
.Render(); %>
</body>
</html>
Should I hand pick those components I really need to load from start and use script tags or are there any way of using the scriptregistrar rendering in two places?