O'Reilly logo

Joomla! 1.5 JavaScript jQuery by Jose Argudo Blanco

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

Optimizing CSS and JavaScript

By this point in the book, our sample site will have quite a good load of JavaScript and CSS files. Each file request requires time and adds to the overall site load time. Now our site has over 20 CSS files, and more or less the same number of JavaScript files.

What can be done to reduce the number of calls? Well, as developers, we could pack our JavaScript and CSS files in as few files as possible. But as we are using lots of third-party extensions, and as it will be quite a huge task to try to pack these files, we should search for another option.

A good option will be to use a plugin like the JCH Optimize plugin, which we can find in the Joomla! Extensions Directory at the following URL:

http://extensions.joomla.org/extensions/site-management/site-performance/12088 ...

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