How to Speed Up - Optimize Joomla Performance?
Zuviele HTTP Requests, zu grosse Dateidownload. Optimierung gefällig. Probieren Sie folgende Tips:
- Speed and performance of Joomla is largely dependent on the choice of template, followed by addons components / modules / plugins.
- Activation of inbuilt Gzip and Cache system does speed up the Joomla site.
- Cleaning up of CSS codes can result in a highly boosted Joomla performance in terms of decreased http requests and total page size.
- Compression and minification of CSS / JS files, similarly compression and optimization of pics / images is the key to speed up default Joomla.
- As a demonstration we called two css files with one line of code resulting in 1 less http request.
Which parameters are important ?
- HTTP requests
- Total size
- Number of HTML / CSS images
- Number of CSS / JS (scripts) files.
- Size of CSS / JS / HTML images.
- Check for duplicate JS files.
- Check for NOT FOUND items.
Manual tweaking for a faster Joomla
- Always try to have a lighter and simpler template. Put the templates through the analyzer before settling for one.
- If changing template is no longer a option, then cut down on template based features, such as users tools, specialized login modules, unpublish such modules and if possible remove their reference from css also.
- Take a backup of your css files and then run them through online optimizer. It reduces the file size by 10-30 % and removes the comments, white space between the css code. Remember, after this step the css file will no longer be human readable, so always backup your copy.
Java Scripts optimization
•After saving a copy of your JS file, run the file through JS compressor. The results have varied for me, and not all the JS scripts like to be compressed. but no harm in trying this.
- Never ever ask the browser to scale a big picture for you. Use JCE editor to make autothumbs for you or upload your thumbnails manually. Resizing while downloading the picture means that the browser will download the full picture and then resize it for you.
- For pictures, compress them, use Irfan View, or in photoshop use the option "save for web". In any unoptimized thumbnail, it is possible to take away atleast 10KB each, just by opening and saving for web in photoshop.
- Use Firebug to smush it the pictures
- These are the images loaded by your template and these images make up your template. If you have a simple template, the number of css images would be less.
- If your template offers many options, such as color, style, module style, drop down menus option. - then you need to manually edit the css files or your template's index..php to load only the required scripts (menu styles) or images of the color scheme opted etc.... By default, half of the css images can be disabled or references removed without any serious effect on the layout or appearance of your template.
Clean Up Joomla
- Remove unwanted / unused components, modules , plugins.
- Check for leftover database tables of old components or plugins and drop those tables.
- Optimize and repair the database tables. Use PhpMyAdmin for this.
- If the analyzer report states any "Not Found" query. search and remove that query. Not Founds or 404 errors have bad effect on speed. The server/ browser is left thinking about how to deal with this missing item.
Combining CSS or JS files to reduce HTTP requests and file size.
Many options available for undertaking this task, a bit complicated.
- Minify - A Joomla independent Script - That works from the root directory of Joomla.
- Com_minify - A Joomla component that wrap the engine minify.
Using CSS sprites to reduce HTTP requests and picture sizes