Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
YSlow Improve vb load speed v1
fxdigi-cash
Join Date: Jul 2012
Posts: 674

 

Show Printable Version Email this Page Subscription
fxdigi-cash fxdigi-cash is offline 06-30-2013, 10:00 PM

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:
<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
Uninstallation:
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,
Reply With Quote
  #22  
Old 07-04-2013, 12:09 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 07-04-2013, 06:27 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottct1 View Post
I cant use this as my servers use NGINX and dont support .htaccess.
For NGINX try the following code:

PHP Code:
gzip_vary
syntax
gzip_vary on|off
default: gzip_vary off
context
httpserverlocation 
make a test on the common browsers before and after adding the 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
Reply With Quote
  #24  
Old 07-04-2013, 06:31 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by addamroy View Post
According to Google Page Speed,
this hack increased my score from 83/100 to 85/100

Not much improvement, but it is an improvement.
it is a good start, possibly there is something else needs to be addressed in your codes such as css and js order arrangement or compressing images .....

you can upload an image here you use on your forum to show you how far I can shrink its size...
Reply With Quote
  #25  
Old 07-04-2013, 06:33 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeychgo View Post
No appreciable difference for me - tested with gtmetrix
maybe you can try another tester like google speed page test...!!
Reply With Quote
  #26  
Old 07-04-2013, 06:40 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creativepart View Post
What does YSlow have to do with this "mod?"
actually, it is not only Yslow, but Page Speed Grade. That means the higher grade your page is the better performance and faster loading you will have as well as your visitors ...

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
Reply With Quote
  #27  
Old 07-04-2013, 06:55 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally Posted by final kaoss View Post
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
Reply With Quote
  #28  
Old 07-04-2013, 07:04 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally Posted by final kaoss View Post
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
Reply With Quote
  #29  
Old 07-04-2013, 07:12 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Благодарность от:
fxdigi-cash
  #30  
Old 07-04-2013, 08:01 PM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #31  
Old 07-04-2013, 09:33 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04682 seconds
  • Memory Usage 2,346KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete