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

Ways to avoid images

Sometimes, you can replace images with html and CSS. This section shows two examples of this—rounded corners and utility symbols.

Rounded corners in CSS

Consider the box in the following figure. You could implement the rounded corners with one or more images. However, this means that the browser has to request those images. And if you change the color of the page or the box, you may need to redo the images.

Rounded corners in CSS

Many browsers already support rounded corners natively. Firefox has the CSS property moz-border-radius (https://developer.mozilla.org/en/css/-moz-border-radius), while Google Chrome supports border-radius, a property introduced ...

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