Which Script is Slowing Down The Site?

DRE

Well-known member
What's the best way to discover which addon is slowing down my site? Simply disabling addons doesn't seem to work.

I looked at this: http://www.webpagetest.org/result/120611_EQ_Z45/

and sent it to my host and this was their reply:

Host said:
It's the PHP of your script that is taking a while to process:

*bunch of test results, omitted*

As shown by the php file I uploaded to your site and ran the test for, the site loads fast, indicating that it's not a server or a generalized issue with your account (or it would load slow too). Unfortunately since your issue is a script issue, it's not really something I'd be able to help with.

Thank you for the swift response. I am investigating now. Are there any tools in my cpanel or any websites that you know of that can help pinpoint scripts that are slowing down a site?

Host said:
We like to let you know that unfortunately there is no tool for pinpoint scripts that are slowing down a site in cpanel. It's better you need to contact wit your site builder and optimize your site. Please let us know if you need any further support.
So when he says script, could he mean xenforo the whole forum software itself or the style I'm using or an addon?
 
You can effectively create your own cookieless pseudo-CDN to deliver images/data/javascript from - I've done it with CycleChat and GeeksChat.

Just setup a new "site" in Apache using a subdomain such as "img" or "cdn" and point it to the root of your current site - then just update your XF config to use this new sub-domain for data/java:

Rich (BB code):
$config['externalDataUrl'] = 'http://cdn.yoursite.com/data';
$config['javaScriptUrl'] = 'http://cdn.yoursite.com/js';

For images just update the setting in the ACP: Appearance > Style Properties > General > Path to images - http://cdn.yoursite.com/styles/default

Apache will deliver simultaneously to both URLs so you get to speed up page delivery a bit too. (y)

Cheers,
Shaun :D
Hmm.

I have a folder called styles/8thos where I put custom images and sprites into. When I created the cookieless domain I moved it there so that it's http://cdn.mysite.com/styles/8thos

Once I did that I realized I would have to go through my whole site and style properties and replace the path to http://cdn.mysite.com/styles/8thos

I basically created way too much work for myself.
 
Hmm.

I have a folder called styles/8thos where I put custom images and sprites into. When I created the cookieless domain I moved it there so that it's http://cdn.mysite.com/styles/8thos

Once I did that I realized I would have to go through my whole site and style properties and replace the path to http://cdn.mysite.com/styles/8thos

I basically created way too much work for myself.

You shouldn't need to do that - the settings change should be automatically applied to all the image links in the templates (I think it uses @images or similar).

However if you've manually changed all the paths then yes, unfortunately that's going to take some changing - don't envy you that task. :D
 
You shouldn't need to do that - the settings change should be automatically applied to all the image links in the templates (I think it uses @images or similar).

However if you've manually changed all the paths then yes, unfortunately that's going to take some changing - don't envy you that task. :D
So instead of putting the 8thos folder in styles/8thos I should've put it in styles/default/8thos
 
Alright I really appreciate the help guys. I have now realized that whenever I create styles or addons that I need to put the folder in styles/default/8thos instead of styles/8thos so that if anyone has a cdn set they won't have to change the paths in their Style Properties, although they'll still have to make sure to upload the folders in the right directory. I'll include that in my directions too next time I post a style or something.
 
That is allot of addons. Just a little bit off topic, but have you updated your xF install with that many addons? I would be very interested in your experiences with that.
I am still surprised that you are running 75 or so addons.. :D ( I was running and disabled 5 of them yesterday only !! )
I would like a list of all those as they were considered useful by you even when you uninstalled the other ones.
CSS sprites is why I haven't also yet added more smilies on my foro, I have asked a staff member to make a spritesheet, I think that you are doing right by going the cdn way if your userbase is large and from all over the planet.
Taigachat was suggested by some staff but I said no.. its better if I don't give that from the start...
But I am afraid now, coz I want to amalgamate the social plugins as an added bonus for my new forum.. but if they slow down so much then I would be sad..

and using 'click test' is logical way, as that is human way.
Instead of listing them here's some screenshots. http://xenforo.com/community/threads/8thos-com.31074/#post-372746
 
Please, I am new to Xen and Apache.. so could we go a little detailed here, coz I think I want to implement this, this will reduce the load on xenforo and thus would make it run better !
what I need to ask is, whther I will have to move my files and styles to that folder or xf will do that for me.. or I would do it through ftp, or file manager..
and a step by step.. Please :D
You can effectively create your own cookieless pseudo-CDN to deliver images/data/javascript from - I've done it with CycleChat and GeeksChat.

Just setup a new "site" in Apache using a subdomain such as "img" or "cdn" and point it to the root of your current site - then just update your XF config to use this new sub-domain for data/java:

Rich (BB code):
$config['externalDataUrl'] = 'http://cdn.yoursite.com/data';
$config['javaScriptUrl'] = 'http://cdn.yoursite.com/js';

For images just update the setting in the ACP: Appearance > Style Properties > General > Path to images - http://cdn.yoursite.com/styles/default

Apache will deliver simultaneously to both URLs so you get to speed up page delivery a bit too. (y)

Cheers,
Shaun :D
 
Please, I am new to Xen and Apache.. so could we go a little detailed here, coz I think I want to implement this, this will reduce the load on xenforo and thus would make it run better !
what I need to ask is, whther I will have to move my files and styles to that folder or xf will do that for me.. or I would do it through ftp, or file manager..
and a step by step.. Please :D
Start with just one folder at a time first to experiment. I'll create a resource on how to do this.
 
That will be amazing, I will be waiting as it is right time for me, My forum is up but only to staff now so It will be wonderful if I implement these and other ideas from the start. :D
Start with just one folder at a time first to experiment. I'll create a resource on how to do this.
 
Top Bottom