Speed Joomla Up

Discussion regarding Joomla! Performance issues.

Moderator: General Support Moderators

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.
deizel
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Mar 02, 2006 1:46 pm
Location: Stirling, Scotland
Contact:

Re: Speed Joomla Up

Post by deizel » Mon Feb 26, 2007 10:03 am

The script you pasted tries to run the OPTIMIZE command. Only if it fails, will it run the REPAIR command, and then a following OPTIMIZE command.

After a long, hard day of fetching and editing tables, MySQL can become overburdened and create overhead. This can be almost directly compared to how defragmentation occurs on a hard drive. For example, something needs to be replaced in one location but there is not enough space so part of it goes here and part goes there; discontinuous. Over time, overhead for very active tables in your database can reach high levels.

Optimizing a database is akin to defragmenting your harddisk and simply rebuilds the table and frees up space, while Repair repairs a possibly corrupted table.

To be honest though. I don't think you would see much benefit, if any, in running this script on a small site. Think: How often do you defragment your computer's harddisk, and how big is it/how much activity does it see compared to your website? In saying that, I'm sure this would be absolutely essential in making sure a large site, like this one, doesn't grind to a halt over time.

Edit: Oh, and to answer your question more directly, I don't think this would cause degraded performance of your MySQL database. Worst case scenario, you may lose data when a corrupt table gets repaired, so, naturally, one may want to have regular backups of the site database.
Last edited by deizel on Mon Feb 26, 2007 10:09 am, edited 1 time in total.
d.

 
tjrac
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Sat Aug 27, 2005 3:17 pm

Re: Speed Joomla Up

Post by tjrac » Sun Mar 04, 2007 2:58 pm

Hey Folks,

Check this out
http://rakaz.nl/item/make_your_pages_lo ... _css_files

Seems to work pretty well.

mpettitt
Joomla! Guru
Joomla! Guru
Posts: 903
Joined: Fri Apr 07, 2006 2:36 pm
Location: UK
Contact:

Re: Speed Joomla Up

Post by mpettitt » Mon Mar 05, 2007 9:58 am

In general, Joomla tends to only use relatively few CSS files, unless you're doing some strange things with the template, but compressing them can help dramatically - I run them all through a 1 line PHP script, which gzips on request, and is cached, so once it has loaded once, it serves the compressed version, unless the browser can't handle compressed CSS (some very old ones - not a common thing!) in which case it gets the plain version.
Combining the JS files sounds interesting, although I'm not sure how well it would work with AJAX scripts.
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

lonely_mizo
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 126
Joined: Sun Mar 16, 2008 2:14 am
Contact:

Re: Speed Joomla Up

Post by lonely_mizo » Thu Apr 17, 2008 4:14 pm

Take a look here and check for your websites performance:
http://www.websiteoptimization.com/services/analyze/
This page gives you a summary about your websites objects and has proposals how to improve it.
The only site I could see with a perfect output is yahoo.com, they have lots of img's or icons on the front page, even more than most sites but how do they managed to do it so?, we've managed to minimize most of non-joomla (non-cms) sites we've created but I can't think of much solutions in my joomla site/s as it has to depend on lots of extensions to make it look good...and i really dont see the differences with those accelerator extensions does... may be am missing something.

Many thanks to heckwar and deanmartin for being very very informative.
Do what you always wanted in life!
www.lonelymizo.com

hanlylim
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Feb 24, 2008 12:07 am

Re: Speed Joomla Up

Post by hanlylim » Wed May 14, 2008 7:52 pm

Hi,

Does anyone has the answer regarding making Joomla site to load like Yahoo.com ?
I would like to know how that is done cause my site is about 260 Kbs (compressed, css gzipped, images optimzed) but still doesn't load like Yahoo.com which is about 6-7 Kbs !

Cheers.

Hanly

Aly
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 235
Joined: Mon Aug 22, 2005 8:56 pm

Re: Speed Joomla Up

Post by Aly » Sat Aug 16, 2008 5:11 pm

My site is not that slow, but the ADMIN is ridiculously slow. In fact, I cannot get to the menus (only visible links like preview/logout) without having to log out and back in again.

I have disabled gzip, SEF
Turned on web services
and am using a new, fresh install of the latest 1.5 version

Hosting for this client is at: jumpline.com

I'm going NUTS! I can't edit or add content at this rate without logging out and in between every article. I just logged in and clicked Category Manager. Firefox is spinning and spinning, loading and loading - but I can't fathom what is loading.

I created a new Category but now I cannot get to the Content menu to add an article.

EDIT: this problem is not happening when I use IE 7. It is still slow on Firefox to the point of never completely loading on most pages.

sivalik
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Jul 11, 2008 12:22 pm

Re: Speed Joomla Up

Post by sivalik » Mon Jan 05, 2009 9:12 am

hanlylim wrote:Hi,

Does anyone has the answer regarding making Joomla site to load like Yahoo.com ?
I would like to know how that is done cause my site is about 260 Kbs (compressed, css gzipped, images optimzed) but still doesn't load like Yahoo.com which is about 6-7 Kbs !

Cheers.

Hanly
This what Yahoo has to say:
http://developer.yahoo.com/performance/rules.html

doktorrr
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Wed Feb 07, 2007 10:09 pm
Contact:

Re: Speed Joomla Up

Post by doktorrr » Mon Jan 26, 2009 6:02 pm

I recently have problem with speed site and I 'm remove some css code in templates files. Since than,my site is improve speed.

guruananthe
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Wed Feb 25, 2009 10:37 am
Contact:

Re: Speed Joomla Up

Post by guruananthe » Tue Mar 03, 2009 7:44 am

Page Load depends on the size of the images , reduce the images size and load with CSS.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

drarvindc
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sat Jan 20, 2007 10:51 am
Location: Mumbai, India

Re: Speed Joomla Up

Post by drarvindc » Wed Mar 11, 2009 3:37 pm

Just finished writing article on speeding up tips for joomla.

[removed self promotion]

Choice of template is half the game, in speeding up Joomla. Interesting to note that each image is equivalent to 1 HTTP request. Less the image faster the joomla is. CSS code clean up, removal of extra stuff from CSS does help in decreasing HTTP requests.

One can easily take away atleast 20-30 HTTP requests away from any Joomla template without much effect on the template functionality.

Its sad to see, users just see the thumbnails size visually, one should check the property of thumbnail and should optimize them, there is always scope to compress a thumbnail. At times, upto 10 KB per thumbnail can be saved and thats very beneficial if you have a good traffic site.

For example, if you save 30 HTTP requests and you have 500 visitors per day. You just saved 30x500 = 15,000 HTTP requests a day. So even if you remove 1 image from your main page you save 1 HTTP request.

Have tried to explain it properly, with screenshots from WSO.
Last edited by Geoff on Fri Mar 13, 2009 7:16 pm, edited 1 time in total.
Reason: removed self promotion

gaurav_joomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Feb 26, 2009 7:10 am

Re: Speed Joomla Up

Post by gaurav_joomla » Tue Apr 07, 2009 3:19 pm

booger wrote:Actually the best way to gzip your css is just to create a file named 'template_css.php' and add the following code into it:

Code: Select all

<?php 
ob_start ("ob_gzhandler");
header("Content-type: text/css");
header("Cache-Control: must-revalidate");
$offset = 60 * 60 ;
$ExpStr = "Expires: " . 
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
<?php include ('template_css.css'); ?>
Then change your template to reflect the name as stated before:

Code: Select all

<link rel="stylesheet" href="/templates/<name-of-template>/css/template_css.php" />
That way you can still edit your css file through the admin panel.

What about if we have the include some special css like this??:
<link rel="stylesheet" href="templates/beez/css/template.css" type="text/css" />
<link rel="stylesheet" href="templates/beez/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="templates/beez/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="templates/beez/css/print.css" type="text/css" media="Print" />
NOTICE: the media

when we use just include then the special characteristic of the css is compromised.. any alternative or suggestion? and if i first want to do a small test then how do i come to notice that the zipping has occurred and the page is lighter. how do u weigh pages. is there any tool available? pls help me as i m a bit novice :|

gaurav_joomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Feb 26, 2009 7:10 am

Re: Speed Joomla Up

Post by gaurav_joomla » Wed Apr 08, 2009 12:10 pm

hi
can you suggest how to use these types of css links having special characteristics of media rendering. eg. <link rel="stylesheet" href="templates/beez/css/position.css" type="text/css" media="screen,projection" />
NOTE: the media in the link
I have tried it and the include in php doesnt support this property. so how to go about it ?? ???
please suggest.
Much Thanks
-Gaurav

jamesmeijer1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri May 15, 2009 6:43 pm

Re: Speed Joomla Up

Post by jamesmeijer1234 » Fri May 15, 2009 8:50 pm

thanks for the great tips, they will really come in handy soon. ( currently making and testing my site.

smithe
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Apr 12, 2009 2:53 am

Re: Speed Joomla Up

Post by smithe » Fri Aug 28, 2009 3:55 pm

Question from a newb.

Do disabled mods slow page load?

User avatar
cipek1981
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Dec 20, 2008 9:01 am
Contact:

Re: Speed Joomla Up

Post by cipek1981 » Mon Aug 31, 2009 1:58 pm

Great tips. I will try.
Molim te da pogledaš Pravila Foruma povodom tvog potpisa: http://forum.joomla.org/viewtopic.php?f=8&t=65

kentcheung2000
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 25, 2008 8:16 am

Re: Speed Joomla Up

Post by kentcheung2000 » Wed Dec 02, 2009 4:24 am

Add the following line on the top of the index page. It's for compression and it will speed up your joomla site really really fast!!!

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>



Remember to turn on your gzip.

ermand
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Nov 01, 2009 9:42 pm

Re: Speed Joomla Up

Post by ermand » Tue Feb 09, 2010 6:06 pm

kentcheung2000 wrote:Add the following line on the top of the index page. It's for compression and it will speed up your joomla site really really fast!!!

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>



Remember to turn on your gzip.
Doesn't really work I put it on this site http://www.[spam].com/ not much difference.
I believe you are better off using a plugin like cssjscompress

the apprentice
Joomla! Guru
Joomla! Guru
Posts: 725
Joined: Wed Nov 18, 2009 3:53 pm

Re: Speed Joomla Up

Post by the apprentice » Fri Aug 20, 2010 10:39 am

kentcheung2000 wrote:Add the following line on the top of the index page. It's for compression and it will speed up your joomla site really really fast!!!

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>



Remember to turn on your gzip.

What do you mean by index page? Index.php in the root?

I'm using Joomla 1.5.16, updating to latest version will it speed up my site?
Hackwar wrote: If your server has performance problems, don't enable gzip. This is meant to reduce the usage of bandwith, not the load on your server. The server has to encode all the files in order to send them, which only puts additional load on your page.
I'm on a Godaddy shared Server (painfully slow) and was actually advised to turn Gzip on, where's the truth?

User avatar
mkwingzero
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Apr 01, 2010 7:55 am
Location: green earth
Contact:

Re: Speed Joomla Up

Post by mkwingzero » Fri Dec 17, 2010 8:02 am

kentcheung2000 wrote:Add the following line on the top of the index page. It's for compression and it will speed up your joomla site really really fast!!!

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>



Remember to turn on your gzip.
so that is not work ?

i try to ceck my site with http://www.joomlaperformance.com i got list as below:

Code: Select all

Results For http://mkwingzero.com
Total Results
Total HTTP Requests:	70
Total Size: 	1545314 bytes
Total Time: 150.97994 seconds

Object Totals
Type	Number	Size(bytes)	Time (secs)
HTML	1	17770	150.97994
Images	52	1454414	68.316301
Css	5	2423	10.082983
Scripts	12	70707	13.19537
Frames	0	n/a	n/a
IFrames	0	n/a	n/a
* Frames and IFrames are included in the HTML size and time

HTML Request Information
Type	This Connection	Average Of All Sites
InfoDNS lookup took:	2.283471 seconds	
InfoConnection took:	2.980191 seconds	
InfoGeneration took:	51.749196 seconds	
InfoDownload Speed:	299 bytes/second

Details Of Each File
Type	URL	Size (bytes)	Transfer Time
HTML	http://mkwingzero.com	17770	59.385286
CSS			
CSS	http://mkwingzero.com/plugins/system/yoo_effects/lightbox/shadowbox.css	699	3.628897
CSS			
CSS			
CSS	http://mkwingzero.com/modules/mod_yoo_search/mod_yoo_search.css.php	1724	6.454086
Image			
Image	http://www.gotlinks.com/images/banner2-468x60.gif	12722	0.065012
Image	http://mkwingzero.com/templates/yoo_chrome/images/pdf_button.png	1578	4.057153
Image	http://mkwingzero.com/templates/yoo_chrome/images/printButton.png	1568	3.12082
Image	http://mkwingzero.com/templates/yoo_chrome/images/emailButton.png	1602	2.962698
Image	http://anime-access.com/img/promos/promo_f1.jpg	48302	0.512633
Image	http://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Treponema_pallidum.jpg/190px-Treponema_pallidum.jpg	7233	0.240105
Image	http://muflihq.files.wordpress.com/2009/09/the-last-airbender-movie-avatar-the-last-airbender-7276971-914-645.jpg	95175	0.10354
Image	http://images.tvrage.com/flags/kr.gif	275	0.43232
Image	http://img190.imageshack.us/img190/4030/rensilu80910013.jpg	55280	0.46745
Image	http://img43.imageshack.us/img43/1315/rensilu80910012.jpg	70625	0.470596
Image	http://img43.imageshack.us/img43/2051/rensilu80910011.jpg	58635	0.267225
Image	http://img43.imageshack.us/img43/2883/rensilu80910010.jpg	63242	0.334478
Image	http://img132.imageshack.us/img132/6339/rensilu80910009.jpg	33243	0.409326
Image	http://img132.imageshack.us/img132/9826/rensilu80910007s.jpg	57573	0.337432
Image	http://img132.imageshack.us/img132/6346/rensilu80910004.jpg	51544	0.283586
Image	http://img132.imageshack.us/img132/9383/rensilu80910003.jpg	57005	0.295053
Image	http://img29.imageshack.us/img29/127/rensilu80910002.jpg	36446	0.360287
Image	http://img39.imageshack.us/img39/6887/rensilu80910001.jpg	83087	0.462476
Image	http://img39.imageshack.us/img39/5592/cutesoizaacomsi20lu20re.jpg	122655	0.398952
Image	http://img8.imageshack.us/img8/8964/cutesoizaacomsi20lu20rev.jpg	70797	0.501418
Image	http://img8.imageshack.us/img8/3715/cutesoizaacomsi20lu20reh.jpg	94110	0.479335
Image	http://img8.imageshack.us/img8/4365/cutesoizaacomsi20lu20ren.jpg	61958	0.362913
Image	http://img8.imageshack.us/img8/5592/cutesoizaacomsi20lu20re.jpg	78213	0.318471
Image	http://img8.imageshack.us/img8/2577/cutesoizaacomsi20lu20req.jpg	42387	0.298182
Image	http://lh5.ggpht.com/_dlZzyDbL_RY/TA9A2bXlhTE/AAAAAAAAATo/d8EPQhacLZk/s160-c/Ayumihamasaki.jpg	8257	0.528148
Image	http://img63.imageshack.us/img63/4525/kiyosi_sakurazuka6.jpg	73631	0.46328
Image	http://img63.imageshack.us/img63/5120/kiyosi_sakurazuka2.jpg	111027	0.317886
Image	http://img63.imageshack.us/img63/7661/kiyosi_sakurazuka4.jpg	40381	0.260775
Image	http://top.indojoomla.com/images/button.png	1958	1.3887
Image	http://t1.extreme-dm.com/i.gif	1004	0.519554
Image			
Image	http://e2.extreme-dm.com/s11.g?login=2ero01&j=n&jv=n	43	0.487939
Image			
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/images/magnifier_icon.png	1571	2.00961
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/images/close_icon.png	1541	2.876635
Image			
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/images/resultbox_bl.png	1523	6.687781
Image			
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/images/resultbox_b.png	1352	5.509621
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/images/more_icon.png	1717	2.085055
Image			
Image			
Image			
Image			
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/black/images/more_icon.png	1800	7.248576
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/default/black/images/header_bg.png	1261	2.991841
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/blank/images/magnifier_icon.png	514	3.70118
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/blank/images/close_icon.png	475	6.611316
Image			
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/blank/images/more_icon.png	487	3.54791
Image	http://mkwingzero.com/modules/mod_yoo_search/styles/blank/black/images/more_icon.png	617	3.539033
Script	http://mkwingzero.com/components/com_jcomments/js/jcomments-v2.1.js?v=2	8458	5.579344
Script	http://mkwingzero.com/components/com_jcomments/libraries/joomlatune/ajax.js	1688	3.734349
Script	http://mkwingzero.com/modules/mod_yoo_carousel/mod_yoo_carousel.js	1458	2.280558
Script	http://www.avira.com/includes/js/av_threats_defaults.js	3406	0.798746
Script	http://www.avira.com/includes/js/av_threats_resources.js	543	0.252206
Script	http://pagead2.googlesyndication.com/pagead/show_ads.js	54148	0.212604
Script	http://resources.infolinks.com/js/infolinks_main.js	1006	0.337563
	Total	1545314	150.97994

Grades
Type	Your Value	Recomnded Value	Grade
InfoHTML Size	17kb	40kb	
Pass
InfoTotal Size	1509kb	100kb	
Fail
InfoTotal Requests	70	30	
Fail
InfoGeneration Time	51.749196	1 second	
Fail
InfoNumber Of Hosts	20	2	
Fail
InfoNumber Of Images	52	25	
Fail
InfoSize Of Images	1420kb	20kb	
Fail
InfoNumber Of CSS Files	5	2	
Fail
InfoSize Of CSS Files	2kb	10kb	
Pass
InfoNumber Of Script Files	12	2	
Fail
InfoSize Of Script Files	69kb	10kb	
Warning
InfoHTML Encoding	Gzip	Gzip	
Pass
InfoValid Html	Errors	Valid	
Fail
InfoFrames	0	0	
Pass
i think so hard to step by step to reduce it :(
Just wanna share info :D
http://www.mkwingzero.com

micale
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Oct 31, 2011 9:15 am
Contact:

Re: Speed Joomla Up

Post by micale » Mon Oct 31, 2011 9:20 am

Thank you for your reply. Unfortunately, I do not have a index.template.html file. I just have an index.php and the css file.

joomwork
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Jun 04, 2006 10:25 pm

Re: Speed Joomla Up

Post by joomwork » Thu Mar 29, 2012 4:52 am

CSS sprites increase your Google Page Speed score.

relaxindochina
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Mon Oct 10, 2011 2:18 am
Location: www.vn-boom.com
Contact:

Re: Speed Joomla Up

Post by relaxindochina » Mon May 21, 2012 9:24 am

hi all!
I have a ploblem with my site (http://www.kienanh.vn). My site used Joomla 1.5.x and Virtuemart 1.8, I'm truying to caculates by YSlow (addon of firefox) - result: Grade C, but my site load very very slowly,...Plz help me! I'm trying fix css, js,... but not working?
Could i change my hosting?

Thank for all ideal!

joomwork
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sun Jun 04, 2006 10:25 pm

Re: Speed Joomla Up

Post by joomwork » Mon May 21, 2012 11:29 am

relaxindochina wrote:hi all!
I have a ploblem with my site (http://www.kienanh.vn). My site used Joomla 1.5.x and Virtuemart 1.8, I'm truying to caculates by YSlow (addon of firefox) - result: Grade C, but my site load very very slowly,...Plz help me! I'm trying fix css, js,... but not working?
Could i change my hosting?

Thank for all ideal!
How many sql queries do you see on browse page and product detail pages? You can see them by turning on the Joomla debug mode.

Jarod545
Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Fri May 25, 2012 10:25 am
Contact:

Re: Speed Joomla Up

Post by Jarod545 » Sat May 26, 2012 12:37 am

relaxindochina wrote:hi all!
I have a ploblem with my site (http://www.kienanh.vn). My site used Joomla 1.5.x and Virtuemart 1.8, I'm truying to caculates by YSlow (addon of firefox) - result: Grade C, but my site load very very slowly,...Plz help me! I'm trying fix css, js,... but not working?
Could i change my hosting?

Thank for all ideal!

have you tried jFinalizer http://extensions.joomla.org/extensions ... ance/11366

 

Locked

Return to “Performance - 1.0.x”