The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
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  [ 13 posts ] 
Author Message
 Post subject: Website loading to slow
PostPosted: Sat Apr 21, 2012 9:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 14, 2010 4:15 am
Posts: 21
So after I checked my homepage in this website for performance reports -> http://tools.pingdom.com

..I saw the reasons of the website beeing so slow. One of them is "Parallelize downloads across hostnames", I googled it and I learn that the best way to fix this and improve joomla performance is to create a sub-domain like images.mysite.com, and make all the images that are beeing loaded in the website, rloaded from that sub-domain and not the homepage url.

What is the best way to do that? I already created the sub-domain, must I everytime I add an article put the abolute path of the image to my sub-domain? Is that simple?

If anyone has any tips for to improve the speed of my website i´ll appreciate.

Thanks,
regards.


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 11:17 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Sep 13, 2007 11:39 am
Posts: 796
Location: UK
It is not particularly difficult to load your images from a subdomain, just create a subdomain that points to your images folder, then instead of using an image url http://mydomain.com/images/myimage.jpg use http://images.mydomain.com/myimage.jpg

However I am puzzled by this suggestion, I would be interested to hear the theory about why this is supposed to work, because it does not seem to me that it would accomplish anything. A much more important thing is to make sure that your images are optimized, and are not higher resolution than you need. It can reduce the download size and hence time significantly

For example a typical JPEG photo these days can be several megabytes in size. If you use photoshop to reduce the size, and then compress the image when it is saved, you can reduce this to around 100 to 200KB for a typical website image. If you can't afford photoshop then there is plenty of other image editing software, eg GIMP which is free.

_________________
http://www.iswebdesign.co.uk for custom Joomla! design
http://www.spiralscripts.co.uk for Joomla! extensions


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 11:31 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 14, 2010 4:15 am
Posts: 21
here is one of the links I read about it -> http://groups.google.com/a/googleproductforums.com/forum/#!topic/webmasters/5uuvJWXl7hg

He basically talks about using sprites wich I don´t use, because the template was not buil in that way. And talks also about creating the sub-domain I mentioned.

Until now I must admit I never pay atention to images size, I just uploaded them without first work on them. Now I´m more aware.

Another thing, maybe you can help me, my homepage loads 36 css files :eek: sounds to much no? The template is from gavick.com.
pingdom.com recomends to have less css files and compress and merge them, so my question is, should I put all the css code in 1 file like the style.css and have the remaining 35 link to this file. Or I must get rid completely of all css files and just 1 with all the code? which method is best?

Thank you very much for the help.
regards


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 12:26 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Sep 13, 2007 11:39 am
Posts: 796
Location: UK
Yes, 36 css files does sound like a lot, you can put all the code from them into 1 file. But you would still need to find the code that loads them and stop it happening, otherwise the files would still be fetched even if they are empty.

I think that there are some plugins in the Joomla extensions directory that can help with this sort of thing by doing it automatically for you, also doing the same thing for javascript, I suggest that you do a search of the JED and find something, otherwise it is quite a big task to accomplish yourself.

As far as the subdomain thing for images is concerned, yes I can see the sense now, though I am still sceptical about what difference it actually makes in practice. I still think optimizing your images is more important.

_________________
http://www.iswebdesign.co.uk for custom Joomla! design
http://www.spiralscripts.co.uk for Joomla! extensions


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 12:32 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Sep 13, 2007 11:39 am
Posts: 796
Location: UK
You might take a look at these:http://extensions.joomla.org/search?q=compress+css+files

I have not personally tried any of these so cannot recommend them, but the CssJsCompress plugin in particular would seem to be the kind of thing you want.

_________________
http://www.iswebdesign.co.uk for custom Joomla! design
http://www.spiralscripts.co.uk for Joomla! extensions


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 2:33 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 14, 2010 4:15 am
Posts: 21
I installed this one -> JCH Optimize, and it makes my website even more slower. Maybe i´ll try a few more and see the results, but i´m thinking the best way is to do it manually one step at a time.

I think it´s a bit ridiculous that we must pay for a template while there is no information at all about the how it´s been developed, and then users like myself starts to think maybe is joomla problem or hosting problem. And after all its the template! I´m sure those guys know what they are doing, but don´t spend to much doing it the right way.

I´m no expert in this, but 36 css files on the homepage? Jomsocial has 18css files on my homepage, 14css files from the template itself and a few more from plugins, makes this thing a bit confusing and stupid. And between the community they are "best" components outthere.

I will read some more and try to understand better and maybe I´ll get this to professional level :)

Thanks for the help so far.
regards.


Top
 Profile  
 
PostPosted: Mon Apr 23, 2012 11:28 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Thu Sep 13, 2007 11:39 am
Posts: 796
Location: UK
I do agree with you about the 36 style sheets, it a common problem with commercial templates, they do often suffer from 'code bloat'.

However have you tried loading your site using the default template that comes with Joomla? It is quite lightweight, so the site should load quickly if the problem is the template. I don't think you can assume that the problem is the template.

_________________
http://www.iswebdesign.co.uk for custom Joomla! design
http://www.spiralscripts.co.uk for Joomla! extensions


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 10:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 14, 2010 4:15 am
Posts: 21
Yes with default template the site is way faster. I read somewhere that is possible also to speed up joomla loading time with a htaccess trick. I´m trying to find some info about the code to test it.


Top
 Profile  
 
PostPosted: Sat Apr 28, 2012 6:22 am 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Feb 16, 2009 4:38 am
Posts: 337
Toohinc, I can resolve all your issues, drop me a PM and I will get back.


Last edited by ooffick on Tue May 22, 2012 10:57 am, edited 1 time in total.
Mod Note: Please keep the discussions in the forum so that your answer helps other people as well


Top
 Profile  
 
PostPosted: Fri May 04, 2012 8:17 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 30, 2006 7:28 pm
Posts: 22
puneetjain, can you share with me your solution too?


Top
 Profile  
 
PostPosted: Fri May 04, 2012 8:23 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Feb 16, 2009 4:38 am
Posts: 337
may yin, I need to analyze your website to share the solution. If comfortable and looking for help, PM me your website or you can share here as well, if you want.


Top
 Profile  
 
PostPosted: Fri May 04, 2012 8:44 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 30, 2006 7:28 pm
Posts: 22
pm just sent. and thanks.


Top
 Profile  
 
PostPosted: Tue Aug 28, 2012 12:52 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Jul 28, 2012 11:49 am
Posts: 1
puneetjain, can you also share with me your solution too? Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: No registered users and 17 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® Forum Software © phpBB Group