<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 !!!

Print | posted on Monday, November 17, 2008 3:25 PM

Comments on this post

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

Requesting 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
Left by RS on Nov 17, 2008 9:13 PM

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

Requesting 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.
Left by Samir Bellouti on Nov 17, 2008 9:38 PM

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

Requesting Gravatar...
I just wondering if we can include the classic webresource.axd files in the combined scripts.

Thanks for the post
Left by Anas on Nov 18, 2008 1:43 AM

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

Requesting 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.
Left by elizabeth on Jun 22, 2009 10:38 AM

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

Requesting Gravatar...
Will that work for .net framework 3.5?
Left by moon on Apr 19, 2010 10:00 PM

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

Requesting Gravatar...
This is good only if you limited number of scripts
Left by meksika biberi zayiflama hapi on May 31, 2010 11:35 PM

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

Requesting Gravatar...
I have also face problem like this in my project
"The resource URL cannot be longer than 1024.
Left by loan software on Aug 02, 2010 9:58 AM

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

Requesting Gravatar...
The solution to the "The resource URL cannot be longer than 1024." problem is to use multiple ScriptManagerProxy controls, with a subset of the ScriptReferences references in each (I find less than 10 in each is best).
Left by Michael on Oct 29, 2010 7:26 PM

Your comment:

 (will show your gravatar)