The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Improve Web Page Performance
Competition is increasing on the Web. If your site is slow you will lose to your competitors. To improve web page performance (speed), you can do a number of things:
As you are aware, today's browsers are faster than earlier versions. They have changed functionality to help improve speed. By understanding how browsers function, you will be able to increase your web page performance. Learn everything that you can about browser functionality.... http://www.browserscope.org/ is a great resource that charts how different browsers function. The Easiest Thing You Can Do To Improve Web Page Performance:
Read more about how <tables> affect speed... How Design Affects Performance : Progressive Rendering Additional information... How Design Affects Performance Increase Download Parallelization - Use A CDN Such As Amazon S3: Increase download parallelization by increasing the number of resources that serves static files. In other words, if you have many static objects* on a page split them across multiple domains. *static files - includes stylesheets, images, swf, etc The reason why this works is because each browser allows a maximum number of connections per hostname. In modern browsers, this number has increased to 6 (avg). What this means is that your browser will try to download 6 objects from any hostname at the same time. So if you increase the number of resources that serve static files it's more likely that you will decrease page display time. In comparison, older browsers such as IE 6 only allowed 2 maximum connections per hostname. Move all your static files to a CDN such as Amazon S3. Doing so will provide you with the following:
I recommend using a different domain other than your site domain. The reason behind this is that you don't want your cookies associated with each static file.
Getting Started I elect to use .info domain for static files as they are offered on the cheap - $1.99. For example, if your site domain is domain.com ; you should purchase domain-file.info to serve your static files. (Note: It can be any domain just as long as it's different from your site.) Setting Up Your Domain Once you get your domain you can point it to your amazon s3 server account (url). This is done by adding a CNAME entry for each sub-domain that you want to create. I created the following sub-domains:
Whatever you use - make sure that you can alter headers. You will need to add EXPIRES header so that the static files are cached - saving you bandwidth and decreasing overall page display time. Other Things You Can Do To Speed Up Your Pages (in no particular order):
To further decrease page display time, I recommend compressing (gzip) your js and css files. You will then have to create a plugin to show the gzip version if browser is capable of displaying if not show the uncompressed version. Most modern browsers are capable of displaying compressed files. However, IE6 is known to have some issues - yes, even the SP2 which was reported to have this fixed is still buggy. Tools To Help You Get Started
|
#12
|
||||
|
||||
Great article Joe, thanks for sharing
|
#13
|
|||
|
|||
Yes thanks for the article. I hadn't heard of some of these tools that are available. It is interesting to see the suggestions from YSlow. There's a number of things I can fix right away just by using the EXPIRES header information.
I'm pressed between using my current server as my content server hosting the subdomains or separate domains for imgs/css/js/etc., since it several times the bandwidth, storage, and processor power than I am currently using. Or maybe just going with AWS. |
#14
|
|||
|
|||
So I was playing around with YSlow today and made some progress on improvements. Having some issues getting .js and some .css to compress with gzip but this is in Windoze.
I made a quick plug-in and hooked it as the last thing on global_start to swap out some of my images and other content to my subdomain CDN's. Not sure if my approach is correct but it seems to making YSlow happier anyway: Code:
$oz_process = str_replace('"http://ozscience.com/forums/clientscript/', '"http://cdn8.ozscience.net/clientscript/', $output); $oz_process = str_replace('"clientscript/', '"http://cdn8.ozscience.net/clientscript/', $oz_process); // $oz_process = str_replace('"http://ozscience.com/common/', '"http://cdn8.ozscience.net/common/', $oz_process); $oz_process = str_replace('"http://ozscience.com/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process); $output = str_replace('"/forums/images/', '"http://cdn9.ozscience.net/images/', $oz_process); |
#15
|
||||
|
||||
Here's some online JS and CSS compressors using the very popular YUI Compressor.
This one is JS only http://yui.2clics.net/ This one is both http://refresh-sf.com/yui/ :up: |
#16
|
||||
|
||||
wow
thanks for sharing |
#17
|
|||
|
|||
Just wondering, did you guys serve your static files through Cloudfront, or directly through S3? Thanks.
|
#18
|
|||
|
|||
So from this article, is my understanding correct, that I should store all forum images (i.e those in the template) on a different host.
How do I configure vBulletin to automatically store user images (i.e. uploads, attachments, avatars, etc) on a different server automatically? |
#19
|
|||
|
|||
i think you meant global_complete. thanks for the tip
|
#20
|
|||
|
|||
Quote:
http://yuilibrary.com/forum/viewtopic.php?f=94&t=91 Nice article BTW |
#21
|
|||
|
|||
Quote:
Is it like this? x-amz-meta-expires:HTTP date or like this x-amz-meta-expires:10000 What about Cache-Control? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|