<microsoft:ScriptReferenceProfiler> for ScriptCombining, available at CodePlex, ASP.NET AJAX

If you have seen Bertrand’s video on Script Combining to improve AJAX performance, you must have really felt like using it in your site to figure out the scripts downloaded in your page and minimizing the size, improving performance etc.,

Well, this post is just to say that, the ScriptReferenceProfiler is available at CodePlex http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=13356

You need to download the binaries and add it as a reference to your website/project.  Once you add the reference, you can add the page directive declaration as below:-

%@ Register Assembly="ScriptReferenceProfiler" Namespace="ScriptReferenceProfiler" TagPrefix="cc1" %>

and then start using it in your page as below:-

<cc1:ScriptReferenceProfiler ID="ScriptReferenceProfiler1" runat="server" />

Script Combining is one of enhancements to ASP.NET AJAX shipped as a part of .NET 3.5 SP1.  The actual process of script combining is when you identify your scripts and put them under <ComositeScript> collection under ScriptManager.  The ScriptRefereceProfiler is just an utility (great utility by the way!) to identify your scripts.

Therefore, you can use the feature today in your websites and minimize the script downloads and enhance the performance. 

Cheers !!!

posted @ Monday, November 17, 2008 3:25 PM

Print

Comments on this entry:

# re: <microsoft:ScriptReferenceProfiler> for ScriptCombining, available at CodePlex, ASP.NET AJAX

Left by RS at 11/17/2008 9:13 PM
Gravatar
This is good only if you limited number of scripts.In our project we have lots of javascript we used above script profiler and compsite script tag we got following error "The resource URL cannot be longer than 1024 ...

We actually found the solution and same is posted in Codeproject.


Thanks
RS

# re: <microsoft:ScriptReferenceProfiler> for ScriptCombining, available at CodePlex, ASP.NET AJAX

Left by Samir Bellouti at 11/17/2008 9:38 PM
Gravatar
I have posted a pretty simple solution to the 1024 characters limitation.
you can find it on:
http://bellouti.wordpress.com/2008/09/14/combining-javascript-files-with-ajax-toolkit-library/

Regards.

# re: <microsoft:ScriptReferenceProfiler> for ScriptCombining, available at CodePlex, ASP.NET AJAX

Left by Anas at 11/18/2008 1:43 AM
Gravatar
I just wondering if we can include the classic webresource.axd files in the combined scripts.

Thanks for the post

# re: <microsoft:ScriptReferenceProfiler> for ScriptCombining, available at CodePlex, ASP.NET AJAX

Left by elizabeth at 6/22/2009 10:38 AM
Gravatar
Hi:

I wonder if this scriptreference helper is also available for Framework 2.0, I have trouble with slow download ASP.Net pages using AjaxControlToolkit 1.0 and need to improve performance.

Thank you.

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«July»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678