Category: Resources

Minify JavaScript:Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.

“Minifying” code refers to eliminating unnecessary bytes, such as extra spaces, line breaks, and indentation. Keeping JavaScript code compact has a number of benefits. First, for inline JavaScript and external files that you don’t want cached, the smaller file size reduces the network latency incurred each time the page is downloaded. Secondly, minification can further enhance compression of external JS files and of HTML files in which the JS code is inlined. Thirdly, smaller files can be loaded and run more quickly by web browsers.

Leverage browser caching:Reduce the load times of pages by storing commonly used files from your website on your visitors browser

Set caching headers aggressively for all static resources.For all cacheable resources set Expires to a minimum of one month, and preferably up to one year, in the future.

Combine images using CSS sprites:Combining images into as few files as possible using CSS sprites reduces the number of round-trips and delays in downloading other resources, reduces request overhead, and can reduce the total number of bytes downloaded by a web page.

Sprite images that are loaded together: By combining images that are loaded on the same page and that are always loaded together. For instance, a set of icons that are loaded on every page should besprited.