I started using image sprites around 2 years ago because I saw sites such as Apple and Facebook using them on their sites.
It goes without question that loading a page is faster if you download one 60kb image, instead of three 20kb images, however, I have recently been informed that sprites, albeit faster at loading, are in fact a lot more memory consuming on the client side.
In my eyes:
However, in my colleagues eyes:
This leads me to ask the question, are sprites are actually worth using or is my colleague barking up the wrong tree?
The main advantage of using image sprite is to reduce the number of http requests that makes our site's load time faster. The images also load faster making switching from one image to another on some event much smoother. Image Sprite are a collection of images placed into a single image.
A web page with many images can take a long time to load and generates multiple server requests. Using image sprites will reduce the number of server requests and save bandwidth.
The concept of CSS sprites is used to reduce the loading time for a web page because it combines the various small images into one image. It reduces the number of http requests and hence the loading time.
Ans. The visual image of Sprite is called its costume. 4.
Using an image more than once in a page doesn't mean that there is one copy of the image for each place where it is used.
If it did, a page like this demo fiddle would use around 7 GB of memory. It doesn't.
Loading one image is always faster than loading several images. Reducing the number of requests is important when optimising the performance of a site. The fact that the internet is designed to transmit small packages only makes the impact of loading several small images less than it could have been.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With