|
Title: Site performace - how to get your site to run faster Post by: xtreeq on January 22, 2008, 12:47:37 AM This is not a jreviews topic but an admin topic.
To get your site to run faster you can do some changes to your httpd.conf (if you have a virtual / dedicated server) or use the .htaccess file for this if you'r on a shared hosting account. First you need to have Firefox, then install the firebug add-on. after you have this add-on you need to install YSlow from developer.yahoo.com 1. Use YSlow to set your HTTTP requests to a minimun number. 2. Add expires to your CSS, JS, and all images (this will highly reduce site load time since all these components will be downloaded only the first time they appear and then loaded from the browser cache). 3. Minify all JS files. 4. Configure your ETags. After I made these changes my site performace increased dramaticly. Here's the changes to the httpd.conf file: 1. Makes sure you remove the: # to include mode_expires: LoadModule expires_module modules/mod_expires.so Now add (you can ofcourse set the access to what ever you need: week, day, month): # enable expirations ExpiresActive On ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType text/css "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 year" 2. From version 2 Apache uses mod_deflate and not gzip (if using apache vs.1 use gzip): Romove the # tag from the line to enable: LoadModule deflate_module modules/mod_deflate.so Now add: # enable deflate AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript 3. Add for ETags: # calculate etags FileETag MTime Size Please keep in mind that I wrote this for my site. BEFORE you make any changes please check this on your localhost. Hope this helps to improve your site performance.
Powered by SMF 1.1.7 |
SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |