One of the key factors that influences the success of your website on the World Wide Web is the performance of your web pages. All it requires is to make some tweaks at your end and you can make your web pages perform well.
Identify Heavy Components
Large images or components have huge file sizes that makes the web page heavy and further increases its page loading time. As a result, the website takes a long time to load and get displayed on the user screen. Thus it is important to identify these heavy components and optimize them accordingly.
Profile your web pages and key in on unduly heavy components that can either be done away with completely or can be optimized to suit your requirements. It will help you analyze its size and how long it takes to load. Ideally, you should aim to restrict page components under 25 KB.
Use Appropriate Image Formats
The best way to optimize images is to store them properly. Some of the most common file formats to save images are JPEG, GIF and PNG.
JPEG - It is used to save realistic photographs that have multiples shades of colors and smooth gradients.
GIF and PNG - They are used for images, primarily graphics that have solid colors. Though both of them are quite similar. PNG produces a relatively lower file size.
Use CSS Sprites
CSS Sprites are combinations of smaller images into one big image. For this image to be displayed correctly, you need to adjust the background position CSS attribute. This is a great way to reduce HTTP requests by compiling several images and bulking them together as one. This way the HTTP requests are reduced and the web pages are able to load faster.
Though you can do this manually, there are also several web based tools that offer the option to upload images to be combined into one single CSS sprite and then delivers the CSS code to render the images.