The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
YSlow Improve vb load speed v1
Good day, mates, This is a just a beginning of my journey to optimize vb to the max and possible load speed... INFO: : ------------------------------------------------ This little code can increase both load speed and vb pages performance... It works on all vb versions starting from vb3.x.x till vb5... Read more about Yslow link Note: The first release to page optimization code v1 Installation: All you have to do is copy the code below and add it to your .htaccess in the vb root, make sure to test your vb load speed before doing that in order to know whether you did the above step right or not... sites to test your vb load speed: 1- http://gtmetrix.com/ 2- http://tools.pingdom.com/fpt/ 3- Google Speed test The code: PHP Code:
All you need is to remove the code if you didn't want to use it anymore. make sure you take a copy of your .htaccess before you make any modification. Please make as installed if you used it.... Thanks, |
#32
|
|||
|
|||
Why not just show us all! lol
|
#33
|
|||
|
|||
using one of the tools provided in my article can do this easily as this picture of pngauntlet demonstrates. Sometimes there is not much gain but other times you can shave off quite a huge number of KB's from images.
Here's a sample image from my own usage of the tool: |
#34
|
|||
|
|||
Quote:
For sprites, the story is very long and it depends on how you divide your css to many or only one file. if one file then taking all images in consideration to use only one sprite would take long time especially if your forum is full of custom images... |
#35
|
|||
|
|||
I would love it, but first I want to see the challenge and increase the excitement...
Ok, here is an image attached original and after shrinking in size... notice that before.png is 1.3kb with 12x12px and then after compressing it (and renamed it as well), after.png is 429kb with 12x12px..... for instance, it is much better than any compression tool... what you think??? perhaps I will open a topic for this just to avoid the distraction... |
#36
|
|||
|
|||
Quote:
|
#37
|
||||
|
||||
Moved to articles, this is not an add-on.
|
3 благодарности(ей) от: | ||
Delfi_r, final kaoss, fxdigi-cash |
#38
|
|||
|
|||
Does this not work with vbseo? It actually slowed me down...
HTML Code:
# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] <IfModule mod_headers.c> <FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$"> Header set Last-Modified "Mon, 15 Feb 2013 00:00:00 GMT" </FilesMatch> </IfModule> RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{QUERY_STRING} !vbseourl= RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron) RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$ RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA] #php_value display_errors on #php_value error_reporting 1 |
#39
|
|||
|
|||
it should be working on all vb versions without any exception. you can post your site link or a test for it using http://gtmetrix.com to see what the issue is...
Quote:
|
#40
|
||||
|
||||
Quote:
Are you saying that if I removed all the hooks in the vBulletin php files and replaced them with the set of plugins that execute under those hooks then the site would run faster? Has anyone done any experiments on this and is the data published? |
#41
|
|||
|
|||
This is my htaccess file, where do i need to put the code?
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|