![]() |
|
|
Article Options |
|
Step by Step guide to speed up your VB4 OR VB3
by
Rating:
There are several steps to improve your page loading speed. I will go over a few steps that will improve your site's loading time. Step 1: Tweak your htaccess. Open the htaccess file in your forum root and add the following below any url rewrite rules you may have from: Vbulletin 3 or 4 with VBSEO installed VB4 Forum Classic VB4 Suite VB3 by itself This covers the following Pagespeed Rules. Leverage browser caching Specify a cache validator Enable gzip compression Make the following changes in your admincp
This helps to cache nearly any file type that you may add in your attachment options (if you allow people to upload music files, zip files, rar files etc.. see the list lol) *some people report login problems, I have posted below what works for me. Be sure to do this step as well to avoid problems!! http://www.vbulletin.org/forum/showt...php?t=267588#3 A collection of various htaccess setups have been arranged in the attachment below. Simply unzip & select which vb you are using. I have included:
Step 2: Combine Javascript and Minify Javascript & CSS and Minify HTML. Not compatible with VB3 This covers the following PageSpeed Rules: Minify HTML Minify JavaScript Minify CSS Combine external CSS Combine external JavaScript
Step 3: Optimize images There is no more need to do this for vb4 packages unless you wish to do this on other images such as avatars, custom buttons, attachments, gallery uploads etc. This covers the following PageSpeed Rules: Optimize Images If you have access to Visual Studio 2010 (grab the trial edition here which should be compatible with the addon), you can complete this step in just a few clicks using this addon http://visualstudiogallery.msdn.micr...77c3?SRC=VSIDE You can also use pnggauntlet which will compress images as well. This is great to use on new skins/themes and also non animated gifs for Smileys, Signatures, Photo Album & Group Images and Avatars that your forum stores on your server! Please note that both of these methods produce lossless images, meaning that even though it uses various methods to decrease file size there is absolutely no visual loss in quality of the image. For non-windows users, I suggest Imageoptim & Trimage Step 4: Add CSS Sprites. Not compatible with VB3 This covers the following PageSpeed Rules: Combine images using CSS sprites
Step 5: Use a CDN Below are 3 free CDN's. I can vouch for cloudflare and google pagespeed service but have yet to try incapsula. 1) Incapsula 2) Cloudflare *Disable the Rocketloader feature to avoid potential issues. 3) Google PageSpeed Service *Recommended (Let it deliver js & css but not images!! You can and will lose your search rankings for images if you allow google pagespeed to deliver them!) Here's one additional trick to help improve your seo btw: [SEO Enhancement] Replace "reload this page" to the thread title [v1.00] Enjoy! Consider linking to us at http://video-game-chat.com/forum to help show your appreciation, since you'll be saving bandwith, reducing the loading time and thus keeping more visitors who visit your site. And impoving seo as google is now factoring in loading times into it's algorithms. Test your page speed & yslow score's If you would like to test your website and see what changes need to be made while you follow any part of this guide you can do so at several sites: GTMetrix Webpage Test Pingdom Last edited by final kaoss : 22 Apr 2013 at 18:59. Reason: Revised the htaccess to make it fully compatible with any vbulletin setup |
||||||||||||
|
Views: 26461
|
||||||||||||
| Comments |
|
#2
|
||||||||
|
||||||||
|
Just a quick note, for the .htaccess, starting in 4.1.5
becomes
__________________
![]() Posting for support? Read THIS first Do NOT PM me unless I asked you to. Your PM will be deleted and ignored! Do NOT IM me unless I asked you to. You will be added to my ignore list! Chuck Norris once shot an enemy plane down with his finger.... by yelling, “Bang!” No members have liked this post.
|
||||||||
|
#3
|
|||
|
|||
|
Fixing login issues with vbulletin 4.
AdminCP > Options > Server Settings and Optimization Options > Disable Content Caching: Set to yes *Note these changes did not show immediately for me but they did show that they were working for me after roughly 15 minutes. Last edited by final kaoss : 22 Apr 2013 at 19:16. |
|
#4
|
||||
|
||||
|
Originally Posted by extreme-gaming
Maybe rephrase that to only remove it if you haven't added any custom CSS.
No members have liked this post.
|
||||
|
#5
|
|||
|
|||
|
True, most people however are unaware of it's presence.
No members have liked this post.
|
|
#6
|
||||
|
||||
|
Thanks, will be keeping an eye on this article, I just started tweaking my htaccess file for cache and wanted to look into compression as well.
Question though:
What is this and where does it display? Also does this require enabling mod rewrite friendly urls? in the admin control panel No members have liked this post.
|
||||
|
#7
|
|||
|
|||
|
That set's the etags.
And this part identifies what set it (can be changed) Header set X-Powered-By Run a test at http://gtmetrix.com, click timeline, expand an element and you will see details about that request including X-Powered-By No, it doesn't require enabling friendly urls in the admincp. You can still take advantage of the seo friendly urls by selecting this option in your admin cp. Mod Rewrite Friendly URLs The following members like this post: TheRed
Last edited by final kaoss : 30 Jul 2011 at 00:54. |
|
#8
|
||||
|
||||
|
I set up Cloudflare last week.
I'll do the Supercharged mod today. I already have mod-rewrite friendly urls. No members have liked this post.
|
|
#9
|
|||
|
|||
|
I think the caching of javascript doesn't play well with the login systen, in Firefox4 and IE9.
People will log in, it'll display the thank you for logging in, and then they will come back to a page that appears to have them not logged in. Either the caching or the compression not sure which. Chrome seems to be unaffected No members have liked this post.
|
|
#10
|
||||
|
||||
|
Originally Posted by Crotan
Yeah it's doing some weird stuff on my forum. I had to disable twitter style login.
No members have liked this post.
|
|
#11
|
|||
|
|||
|
Hi crotan, is this with vb supercharged installed or did you install the htaccess only? I would have to say caching is the issue here imho.
Originally Posted by Crotan
No members have liked this post.
Last edited by final kaoss : 30 Jul 2011 at 19:14. |
|
#12
|
|||
|
|||
|
just the htaccess on post #3, since I'm on 4.1.5
No members have liked this post.
|
|
#13
|
|||
|
|||
|
Try removing these lines from it
AddType application/x-javascript .js ExpiresByType application/x-javascript A31536000 Also, change this line <FilesMatch "\.(css|js|CSS|JS)$"> to <FilesMatch "\.(css|CSS)$"> No members have liked this post.
|
|
#14
|
||||||||||||
|
||||||||||||
|
Seem to still have issues, I took out
This is now only.
from the original
But still this htaccess interferes with the login of users on IE and Firefox :/ No members have liked this post.
|
||||||||||||
|
#15
|
|||
|
|||
|
ok. At least now we know that caching isn't the issue here. Actually... first... I want you to clear your browser cache and try again with those lines removed.
No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Similar Article
|
||||
| Article | Author | Type | Replies | Last Post |
| Use Google Custom Search In Navbar - Step By Step | rajubd | vBulletin 4.x Template Modifications | 87 | 17 Mar 2013 17:43 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Article Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 12:53.






