Amit's Blog

Sharing Thoughts and Learning

  Home  |   Contact  |   Syndication    |   Login
  43 Posts | 1 Stories | 153 Comments | 14 Trackbacks

News

About Me?
Read it in
Blog Statistics
Proud Member of

Archives

Post Categories

Articles

Book Review

I Visit.

OpenSource Project(s)

I have got quite a bit of comments and feedbacks on my previous post where I shown how to combine multiple JS and CSS Files into one. So I decided to enhance it a bit more. Now it Supports:

  • GZip or Deflate Compression based upon the browser header. Can be turned on/off from web.config
  • Minifier for both JS and CSS files. Although it is recommended to keep separate version of these files for both development and production instead of minifying it runtime. There are plenty of online and offline tool available to do it. This can be also turned on/off from web.config.
  • New Setting in the web.config for Cache Duration instead of hardcoding it in the code.

If you have checked the recent YSlow of Yahoo which works on top of Firebug, you already know that the above items are highly recommended for creating High Performance web applications.

Download: Enhanced Version

kick it on DotNetKicks.com

posted on Sunday, July 29, 2007 5:14 AM

Feedback

# re: Implement Yahoo's YSlow in your Asp.net pages 8/3/2007 5:55 AM Pratik
Really cool.

# re: Implement Yahoo's YSlow in your Asp.net pages 8/21/2007 2:55 PM Dan
"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."

I tried applying your solution to my web app and i'm getting the error above.

I'm i run only the download it works but when i copy the files to my app the error happens.

I'm quite new to asp.net. Any clues as to why this is happening?

# re: Implement Yahoo's YSlow in your Asp.net pages 8/21/2007 6:18 PM Dan
turned out to be if you place <pages theme="default /> in the web.config it gave you that error. If you remove the theme=xxx it works.

Have another problem now, for some reason i'm now getting:

Compiler Error Message: CS0103: The name 'ResourceHandler' does not exist in the current context

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 5 and 6 and type the answer here: