O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image control adapter

To make it easy to implement the recommendations you've seen so far, in the folder Adapter in the downloaded code bundle, you'll find a class project ImageAdapter that adds the following features to all your Image controls, and all Hyperlink controls that show an image:

  • Converts image URL to lowercase.
  • Inserts the last modified time of the image in the image URL.
  • Optionally replaces the domain of the image URL by a cookieless subdomain you set in web.config.
  • Optionally uses a second cookieless subdomain to boost parallel downloads. Allows you to exclude modern browsers that already load more than two components in parallel per domain.
  • Removes inline style border-width: 0px; which is automatically generated by ASP.NET 3.5 and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required