Geeks With Blogs
Amit's Blog Sharing Thoughts and Learning

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 Asp.net , Tips/Tricks | Back to top


Comments on this post: Implement Yahoo's YSlow in your Asp.net pages

# re: Implement Yahoo's YSlow in your Asp.net pages
Requesting Gravatar...
Really cool.
Left by Pratik on Aug 03, 2007 5:55 AM

# re: Implement Yahoo's YSlow in your Asp.net pages
Requesting Gravatar...
"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?
Left by Dan on Aug 21, 2007 2:55 PM

# re: Implement Yahoo's YSlow in your Asp.net pages
Requesting Gravatar...
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
Left by Dan on Aug 21, 2007 6:18 PM

Your comment:
 (will show your gravatar)


Copyright © Kazi Manzur Rashid | Powered by: GeeksWithBlogs.net | Join free