JavaScriptEmbedControl isn't loading kendo scripts

Posted by Community Admin on 04-Aug-2018 15:37

JavaScriptEmbedControl isn't loading kendo scripts

All Replies

Posted by Community Admin on 08-Mar-2016 00:00

In our default.master page we WERE loading our kendo scripts using the script tag.

<script src="/Scripts/kendo/kendo.all.min.js"></script>
<script src="/Scripts/kendo/kendo.aspnetmvc.min.js"></script>

Then someone got the idea of using the JavaScriptEmbedControl to load them like this:

<sfpc:JavaScriptEmbedControl id="kendoall" runat="server" scriptembedposition="InPlace" url="~/Scripts/kendo/kendo.all.min.js" />         <sfpc:JavaScriptEmbedControl id="kendoaspnetmvc" runat="server" scriptembedposition="InPlace" url="~/Scripts/kendo/kendo.aspnetmvc.min.js" />

 

Why are they now not being loaded onto our pages?

 

As an aside, is there a disadvantage to ALSO be loading jquery here?

<sfpc:JavaScriptEmbedControl id="jquery" runat="server" scriptembedposition="InPlace" url="~/Scripts/jquery-2.1.4.min.js" />         <sfpc:JavaScriptEmbedControl id="jqueryui" runat="server" scriptembedposition="InPlace" url="~/Scripts/jquery-ui-1.11.4.min.js" />         <sfpc:JavaScriptEmbedControl id="pwstrength" runat="server" scriptembedposition="InPlace" url="~/Scripts/jquery.pwstrength.bootstrap-1.2.9.min.js" />         <sfpc:JavaScriptEmbedControl id="validate" runat="server" scriptembedposition="InPlace" url="~/Scripts/jquery.validate.min.js" />         <sfpc:JavaScriptEmbedControl id="unobtrusive" runat="server" scriptembedposition="InPlace" url="~/Scripts/jquery.validate.unobtrusive.min.js" />

Posted by Community Admin on 08-Mar-2016 00:00

Somehow, apparently, it was removed from the templates we were using. So they put them there and now they're back!

This thread is closed