Alec Tang

Professional Web Developer/ Web Designer

I build websites based on the latest web standards providing the best possible solution to your company

  • Home
  • About
  • Portfolio
  • Contact
  • Blog
Subscribe Feed

ScriptResource.axd from Ajax getting Too Big

Posted by Alec on Thu, 21 Jan 2010, in ASP.NET C#   SEO   

Today I was testing the loading time of my site, which I sometimes find it slow to access especially the first time loading. I knew there are a lot of images to be loaded especially those in portfolio sections but I also found that the biggest loading item seems to be ScriptResource.axd from Ajax. It was 330kb!

So, I did a little big of Google, and found this out:

There are two options:

1- Specify the property "scriptpath" of the ScriptManager object with the path where you have the folder "\System.Web.Extensions" with all the Js files. (Ex: "~/Jscript").

In this case the page will be too big to load in the browser because the files "MicrosoftAjax.js" and "MicrosoftAjaxWebForms.js" will be completely loaded with the page.

If you have the property "scriptmode" = release, then the files will have 80KB plus 20KB. With "scriptmode" = debug the files will have 250KB plus 60KB. If you have cache for Js in the browser its OK and the first time the page is loaded will take much longer.

2- You leave "scriptpath" empty and the AJAX will generate only the javascript that is needed like this: ScriptResource.axd?d=3dNkxltjv-1JPul9EiKw4KGad ......and it will have just 1024 bytes plus 1024 bytes and in this case you will have no cache for this javascript.

Read: The Web Page Is Too Big After Use Ajax Control Toolkit

Comments Be the first to write a comment. Comment gets approved before publishing.

Post Your Comment

 
 
   

Search

 

Latest Posts

  • Sys.WebForms.PageRequestManagerParserErrorException
  • How Google treats Content Duplication
  • How to create HTML column in Sharepoint List View
  • How Sharepoint stores User Data
  • How to send email via Sharepoint
  • Malaysia Airlines launched iPhone Application: MHMobile
  • Intranet, the next big market
  • How to retrieve and update from a multi choice Checkboxlist ...
  • Auto Complete returns giant list of undefined
  • Integrate Ajax Control Toolkit into Sharepoint

Categories

  • Browsers (1)
  • Projects (1)
  • Web Design (6)
  • Sharepoint (20)
  • Telerik (5)
  • Wordpress (1)
  • Internet (1)
  • SQL (5)
  • LINQ (3)
  • ASP.NET C# (33)
  • JavaScripts (3)
  • IIS (0)
  • Industry (1)
  • Tools (8)
  • SEO (4)

Archives

  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (5)
  • February 2010 (4)
  • January 2010 (11)
  • November 2009 (3)
  • October 2009 (1)
  • September 2009 (9)
  • August 2009 (3)
  • July 2009 (4)
  • June 2009 (1)
  • May 2009 (2)
  • April 2009 (8)
  • March 2009 (6)
  • February 2009 (2)
© Copyright 2009 Alec Tang. All Rights Reserved.
This site is conform to W3C Standard XHTML & CSS