inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jun 21, 2010 11:19:52 GMT -8
So, what methods do you use to optimise your website to make them load faster?
I'm currently in the process of starting off a new version of one of my sites, and with it, it's most beneficial if it loads pretty damned quickly - it's what sets it aside from competition.
Anywho, current methods I have are:
- Linking CSS - Minimising JavaScript [only got jQuery linked atm] - Image Sprites - Hosting all Images/JS/CSS on a subdomain (a.site.com).
I'm told there are huge benefits from hosting on a subdomain, something to do with the amount of "multi-site" downloads it can have going at one time.
Anywho, any others you can think of or that?
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 21, 2010 12:00:05 GMT -8
If you have a design you use repeatedly, space it out in .php files, and then just include them.. That usually gives a little boost of speed, because PHP is processed before the page loads.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jun 21, 2010 12:16:33 GMT -8
If you have a design you use repeatedly, space it out in .php files, and then just include them.. That usually gives a little boost of speed, because PHP is processed before the page loads. That has nothing to do with the actual download speed of the page... 'cause the page whether it's through PHP includes, or through the full page HTML would be the same size.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Jun 21, 2010 13:18:59 GMT -8
xD It goes faster for my computer. ;D
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jun 21, 2010 13:55:30 GMT -8
And you've becnhmarked it? O.o
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 21, 2010 20:02:15 GMT -8
Download the YSlow extension for Firebug. /thread
It's the greatest website loading speed optimizer everrr. Totally useful.
|
|
inherit
77753
0
Jul 18, 2024 12:23:50 GMT -8
Bob
2,623
April 2006
bobbyhensley
|
Post by Bob on Jun 21, 2010 20:19:17 GMT -8
Two exceptionally useful things to do to optimize:
1. Cache wherever and whatever you can. If it doesn't change on a frequent basis, cache it. Serving raw HTML is less of a strain than executing PHP.
2. Install an accelerator. They compile and cache your PHP's bytecode so it doesn't have to recompile upon every request. APC and eAccelerator are the two bigger names for accelerators. My personal favorite, and the one I use myself, is eAccelerator. Benchmarks I've read in the past and benchmarks I've done myself all show that it's more efficient than APC by a decent margin.
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jun 21, 2010 21:31:00 GMT -8
As for downloading... look into forcing a cache and then using a query parameter to force a reload as necessary (i.e. .js?v3.4 and then .js?v3.5 on update).
GZip compressing files might be worth looking into also. I don't know how unpacking the compression effects it, but for a non-compacted JS file, it provides HUGE cuts in the file size... I've seen up to 90-95%.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Jun 23, 2010 9:15:59 GMT -8
GZip is definitely worth looking into. I place all my JS/CSS/image files in a generic folder, then mod_rewrite redirect all the files to a gzip.php file that will compress them before sending. It saves a ton of bandwidth, and the time saved from downloading less is far greater than the time used by decompressing.
|
|