Nitpicking Javascript: CDN, double loading, combining and defer [4.4.2117]
I'm way overdue on my quarterly Javascript rant, so here's the 4th installment and feel free to move on to more important issues :)
<
telerik:RadScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
<
Groups
>
<
telerik:ScriptReferenceGroup
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryPlugins.js"
/>
</
Scripts
>
</
telerik:ScriptReferenceGroup
>
</
Groups
>
</
telerik:RadScriptManager
>
Nice analysis
But with the huge usage of x JS frameworks to get something fine in HTML this is normal.
Thanks
@TMatt,
I respectfully disagree...
73 requests with an average of 4.4 Kb file size with smallest being 249 bytes (not kilobytes) is not building an optimized set of JavaScript libraries.
1079Kb over 2 pages instead of 610Kb over the same two pages is just not optimizing your code/files.
The CDN issues is just me being lazy and seeing normal Ajax/AjaxWebform and the beta Ajax/AjaxWebforms loaded (I know Telerik has a dependency on the beta but still).
It's silly for me to spend 10% of my projects time and budget at optimizing and minimizing code, images and css to give the user the fastest experience and then seeing hundreds of Kb's negate all that work - especially since most of it is unnecessary.
J.
Dear Jochem
Reminds me a lot of this thread http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/script-combining-a-bad-idea.aspx
I am sure with you on this one. I started to build my own rad menu css files instead of using stylebuilder because you can save there a lot as well.
Any idea to make SF faster is welcome an appreciated. Thank's for taking the time for this testing.
Markus