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, |
Please can you make any plugin/mod for increase vb load speed without manual editing .htaccess files?
|
Quote:
I can't make a plugin just for such a simple code... I have many reasons why... 1- Plugins decrease vb performance and effect on the speed load. 2- it may cause a conflict with other plugins or codes, that's why adding a code directly to .htaccess is a lot better and easier. besides, I want to reduce the number of used plugin instead of increasing them since they are big issue on vb load speed... codes are always better for performance and speed .... Cheers:) |
OK ! Does It increase high server load issue?
|
Quote:
maybe I didn't get you right, possibly you mean whether plugins affect heavy load....!! if yes, then yes plugins always cause slower speed and bad performance to vb |
I had high load in my server, Can i get some benefit from this?
|
of course, you will notice the difference directly after you add this code to your root .htaccess.
As I mentioned in the main thread that this is to reduce the load on the vb pages. also it will clear any error in the browser Header set... so 100% useful. you can test your vb on google speed before and after adding the code and you will notice the difference. also you use the other recommended testing sites above to see the speed improvement... Quote:
|
This great code increased my website score in (Google speed page) from 59% to 84%
I wish you continue and release more improvements in this thread Thank you :) |
Please can you tell me? I have a .htaccess file with default this code,where the YSlow code are need to add?
Code:
# -FrontPage- |
Did you read this thread before posting fxdigi-cash
|
Here you are, mate...
Code:
# -FrontPage- Quote:
|
Quote:
This is just the beginning my friend...:) |
Thanks ! Installed , I will update you with more details about Page Speed.
|
No appreciable difference for me - tested with gtmetrix
|
According to Google Page Speed,
this hack increased my score from 83/100 to 85/100 Not much improvement, but it is an improvement. |
This has already been covered here: https://vborg.vbsupport.ru/showthread.php?t=267588
...with lots more info and lots of .htaccess tweaks for all versions of vB. Here is a good start for .htaccess tweaking: Code:
# BEGIN Deny attempts to view the htaccess file. |
Gave me a bump. Thanks
|
one of the best code !
|
I cant use this as my servers use NGINX and dont support .htaccess. :(
|
What does YSlow have to do with this "mod?"
|
Yes fxdigi, thanks for your contribution but this (and more) has already been added by me as bzcomputers pointed out. To be fair though, I can't take credit for all of that code. Thanks goes out to matty asia & the plugin for wordpress w3 total cache.
If you like though, I wouldn't mind any extra ideas that you may have that you can contribute to my article :) Following the steps in my guide yields these results: *With the latest test I've done for my forums, I get a score of 92 http://gtmetrix.com/reports/www.vide...t.com/lARNL8yu *With regular sites (non forums) people can get on average 90 on pagespeed & 84 for yslow http://gtmetrix.com/reports/www.odys...e.com/dgY7xuqQ *Here is a standard html page with not much javascript 98/85 http://gtmetrix.com/reports/www.odys...e.com/NEUWGtPn |
Quote:
PHP Code:
since I don't have NGINX on my own, I can't confirm whether it is going to work 100% or not, but that should do the work anyways |
Quote:
you can upload an image here you use on your forum to show you how far I can shrink its size...:) |
Quote:
|
Quote:
you need to speed up your forum pages as fast as possible so your visitors don't run away at first time visiting... so in summery, we need ultimate speed to load pages and that happens by removing errors, avoiding bad requests, minifying css and js, combining css if possible and js as well, reducing images size to the smallest size or through using sprites....... so this is one way to do the process... and I will share the rest soon if I got enough time... Cheers |
Thanks, final kaoss
I already know this very well. no need to thank me for anything as I don't expect it from anyone since I love sharing whatever I have. The purpose of such thread is to bring the max, useful and powerful codes that can be used by site owners pro and beginners so that anyone can get the advantage... do you think newbies for example will read you article or any article that has long story... NO WAY!! Here I want to simplify things to all by slicing up codes and so on, and introduce basic knowledge on how to deal with vb codes mainly to newbies since they are the majority ... I'm not denying anyone's right or anything and I know you guys did great job by introducing full procedure on how to speed up vb pages, but still not everyone will read long articles as people tend to go with short and useful tools. I believe you got the point, mate. Sorry for writing long, Cheers, Quote:
|
By the way, just to comment on your tests!
I got to say they are very good, but the first one has some issue with Specifing image dimensions... I don't see this part covered in your article anyways...!! The 2nd one as well has the same issue and also sprites not being used, which was discussed in your article... The 3rd one has an issue with images optimization, ... eventually, your tests were great, but I don't know if newbies can follow you up on this, I mean to do the same as what you did... Thanks for sharing. Cheers :) Quote:
|
Thanks for the feedback but I'm certain that if they follow the article step by step as intended they can get through it easily.
It's not listed in the article yes but if users use google pagespeed service, image dimensions and many other things are handled by that service. As for the issue with image optimizations please inform me of what issues you encountered. I'll be sure to check up on how your efforts are doing every now & then. Good Luck! |
Thanks for the comments.
I was referring to the images size. web designers are always concerned about image size since it is an essential key to load pages very fast... so if have some images with varied sizes say 2kb for 20 png image, it is going to be 40kb in total, and that will decrease the page loading speed. in this case we tend to use either sprites to avoid size issue or converting images from png to gif since gif away smaller in size. I believe CDN (CloudeFlare, MaxCDN) is not an option for everyone to use in order to ultimately speed up vb or site pages. Thanks |
Yes I can agree with that, that a cdn is not for everyone. I personally find them to be the most effective with vbulletin when they are only set to serve javascript & css.
If you use the visual studio plugin provided along with the free trial of VS, you can shave off kb's from images without changing the file extension and after that then yes, you most certainly can use sprites. |
Quote:
|
1 Attachment(s)
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.
https://vborg.vbsupport.ru/external/2013/07/65.png Here's a sample image from my own usage of the tool: |
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... |
1 Attachment(s)
Quote:
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... |
Quote:
|
Moved to articles, this is not an add-on.
|
Does this not work with vbseo? It actually slowed me down...
HTML Code:
# Comment the following line (add '#' at the beginning) |
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:
|
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? |
This is my htaccess file, where do i need to put the code?
Quote:
|
All times are GMT. The time now is 11:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|