Joomla! Discussion Forums



It is currently Sun Nov 22, 2009 2:15 am (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security and Performance FAQs
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 14 posts ] 
Author Message
Posted: Tue Apr 03, 2007 6:39 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
Hello,

I just recently began using Joomla to develop my site at http://www.gobozzy.com and I started to use the http://www.websiteoptimization.com/services/analyze/index.html tool to test my website download speed.  For T1, my site was downloading at a little bit more than 8 secs.  The site suggested that I cut down on white space so I started with my CSS files.  I noticed there were a lot of extra carriage returns; sometimes 2-3 newlines between each line of code.  I immediately saw about a 20% reduction in file size.  Anyway, after editing 3 CSS stylesheets, my T1 download time was down to about 6.8 secs!!! 

I will continue to cut down on white space all the other files (ex. php, html...).  By the way, thank you Joomla, for making this all possible for me.  I have always wanted to build a professional looking website without having to have a 10-man team.

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Tue Apr 03, 2007 10:58 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
Or you could just turn on gzip compression, which generally gives about 30% improvements in file download size, including stripping whitespace and compressing textual content as well. It's also a single click option, assuming your server supports gzip, which most do.

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Posted: Tue Apr 03, 2007 4:04 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
Cool...thanks for the tip!  I'll give it a shot right now and let you know how it turns out.  Are there any downsides to using gzip compression though?

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Wed Apr 04, 2007 9:49 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Nov 05, 2005 11:37 pm
Posts: 314
Location: Warsaw
some extra cpu load

_________________
Having Joomla Performance Problems? Look here: http://forum.joomla.org/index.php/topic,106350.0.html


Top
  E-mail  
 
Posted: Wed Apr 04, 2007 9:56 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
The CPU load for gzip is fairly low, and can usually be offset by caching the gzipped output on first generation. How well this works depends on the individual site though: lots of individual tailored pages will mean more load than a basically static site without user login. Depends what is the more critical factor - for me, using a bit extra CPU is acceptable (have CPU cycles to spare!), but my time is limited.

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Posted: Wed Apr 04, 2007 4:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
I turned on gzip compression, however, I didn't see a decrease in download speed  :(

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Thu Apr 05, 2007 8:09 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
If your page is taking over 6 seconds to load on a T1 connection, I suspect the problem is more likely to be lots of images, which won't be affected by gzip or whitespace reduction - you'll have to look at increasing the compression level when saving as jpg or png (for png, you can sometimes get dramatic filesize reductions by reducing the colour depth of the image, if it doesn't need all the colours it is currently catering for).

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Posted: Thu Apr 05, 2007 3:58 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
Thank you for your suggestion.  I will try converting my images to png and see what happens.

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Tue Apr 10, 2007 8:53 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
Note that for photographs, you'll generally get better compression with jpg files, while a lot of logos and simple designs give better results with png. It is about making sure the most appropriate format is used for all images, not using one format no matter what!

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Posted: Tue Apr 10, 2007 2:18 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
mpettitt wrote:
Note that for photographs, you'll generally get better compression with jpg files, while a lot of logos and simple designs give better results with png. It is about making sure the most appropriate format is used for all images, not using one format no matter what!


You are right, the png looked much better than my gif that I originally used for my logo.  It only resulted in 0.04 extra seconds of download time but it was worth it.  Also, I am currently building the zlib module so I can use compression.  I can't wait to see the results!

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Thu Apr 12, 2007 5:33 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
I added the following directives to my php.ini file:

zlib.output_compression = on ;
zlib.output_compression_level = 6 ;
zlib.output_handler = ;

When I check my PHP setting via the Joomla backend, I get this:

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

I am sure that zlib is installed and enabled.  Is there anything I might be missing here?

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Thu Apr 12, 2007 8:22 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
When you modified the php.ini file, did you restart the server process? Also, are you 100% sure that the modified php.ini is the correct one: I know there are about 4 versions of php.ini on my system, but only one of these is actually used.

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Posted: Sat Apr 14, 2007 6:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 04, 2006 10:47 pm
Posts: 29
I am pretty sure because my hosting service only provides me with one php.ini file that is in my root directory when I log in.  There is a little bit of good news though.  My page is down to 5.54 seconds download time.  Also, in the report, it says "This site is using HTTP compression, otherwise called content encoding using gzip."  Since I am using gzip now, would it be worthwhile trying to get the zlib going?

_________________
"You miss 100% of the shots you don't take."
http://www.randomsnippets.com


Top
  E-mail  
 
Posted: Mon Apr 16, 2007 8:15 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Apr 07, 2006 2:36 pm
Posts: 898
Location: UK
If it's compressing content, it's working. 5 seconds isn't amazing, but it is just about acceptable, if the page is usable before that (ie. it's loading images etc. after the text has appeared). I wouldn't worry abotu zlib - I suspect that some other compression code is lying around somewhere, probably in one of your server modules.

_________________
FlexAdvert - the _improved_ Banner Management Suite. Find it at extensions.joomla.org under Advertising Banners
Bleurgh Joomla Extensions - http://www.bleurgh.co.uk - usage instructions, updates and so on
Performance FAQ: http://forum.joomla.org/index.php/topic,88070.0.html


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group