vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - YSLOW 1.0.3 (Make Your Forum Faster) (https://vborg.vbsupport.ru/showthread.php?t=178286)

gwerzal 09-19-2008 12:02 PM

Installed and it does seem much faster.

Thank you very much

sunnylikbeckham 09-28-2008 08:32 AM

yeah working nice

Hamednet 09-29-2008 09:42 AM

thanks dear

very nice !

dlan 10-02-2008 04:28 PM

Good i think but some inevitable compatibility issues. Anyway, gj. I will try to implement some of the principles directly on the forum.

raj_singh 10-07-2008 09:24 AM

Works fine for me thanks

garza 10-07-2008 10:34 AM

My ability to click on a smilie and have it appear in a post automatically stopped working when I installed this. Any idea why? Any work-arounds?

Chadi 10-12-2008 03:03 AM

What methods do you all use to test the before/after results?

troybtj 10-15-2008 05:17 PM

To check if it is all working, install the Yslow plugin for firefox. It shows tats for each page next to a speedometer in the status bar.

This worked excellent, but made the Casino, vbCasino texas holdem stop working, stating javascript needs to be enabled. I had to remove the javascript related cache for and gzip for everything to work properly again. Slots, events, and all the other casino items worked, only Texas Holdem was 'broken'. Not sure if the javascript is dynamic, or why having it cached makes it stopped, same for the gzip. All other javascript runs fine zipped and cached.

Chadi 10-16-2008 12:09 AM

I'm running Firebug and Yslow extension in Firefox to do a performance test. I get the following...

Quote:

This page has 15 external JavaScript files.
This page has 5 external StyleSheets.

Quote:

These components do not have a far future Expires header:
This is my htaccess file, using vbseo rules as well:

Quote:

########## VBSEO ##########

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com
RewriteRule (.*) http://www.talkjesus.com/$1 [R=301,L]

RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (adminbox|modbox|clientscript|cpstyles|images|gold brick|gallery)/
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{REQUEST_FILENAME}index\.php -f
RewriteRule ^(.*)$ $1index.php [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^$ vbseo.php?vbseourl=index.php [L]
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

########## YSLOW ##########

####Charset
AddDefaultCharset Off

####Gzip
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
</IfModule>

####ETags
FileETag None

####Expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType text/css A2592000
ExpiresByType application/x-javascript A2592000
</IfModule>
Also,

Quote:

These components are not gzipped:

clientscript/vbulletin_global.js?v=373
clientscript/quoteit_bbcode.js
clientscript/ajaxtabs/ajaxtabs.js
clientscript/referencetagging.js
Quote:

Minify JS

quoteit_common.js
ajaxtabs.js
Mod defalte and mod expires are both enabled.

troybtj 10-16-2008 02:15 AM

Make sure you don't have multiple compression methods enabled. look at apache deflate.conf and gzip.conf for which file types they are compressing.

They shouldn't be set to compress the same filetypes. If one of them (gzip or deflate in apache) IS set to compress, make sure compression is disabled in vBulletin ACP Site options, and do not run the PHP Compression script (redir.php) in this mod, as redundant compression may uncompress the content, or mangle it in other ways.

Here is my deflate config:

Code:

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE application/x-httpd-eruby
</IfModule>

The lines above are for apache2, deflate is the default compression for apache 2.

The best tip in this mod is the forced caching of relatively persistent objects (images, javascript). If those items are in the cache, it won't matter much if it is 12k or 30k, as it will only be downloaded from your site rarely, instead of on every page load. You can check by looking at "Statistics" tab in Yslow to display which items are cached, saving requests and bandwidth.

For Caching/Expires, I used the headers apache 2 module, with this line for config to cover most everything.
Code:

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Sun, 15 Apr 2010 18:00:00 GMT"
</FilesMatch>

No other cache control lines in apache2.conf, httpd.conf, or any .htaccess files, and output compression in vB ACP is disabled.


With vBulletin version 3.7.3, I suggest enabling loading the Yahoo YUI scripts from the yahooapis.com CDN. Those scripts are rather large, even when compressed. If you pay for bandwidth by the month, and those are loaded with every page, it can add up very quickly on a high traffic site.


With the above changes and settings, Here are the results from the Firefox Yslow add-on on a 3.7.3 PL1 site with quite a few add-ons: (Everything after 6 is an "A")
B 1. Make fewer HTTP requests
This page has 6 external JavaScript files.
F 2. Use a CDN
You can add your own CDN hostname preferences.
A 3. Add an Expires header
A 4. Gzip components
A 5. Put CSS at the top
C 6. Put JS at the bottom


If you have the ability to change the apache configuration and modules, such as a dedicated server, etc, these config changes would be one good solution out of many methods.

If your only ability to change anything about the server is an .htaccess file, and gzip or deflate aren't installed in your apache server, then this script/.htaccess mod is about your best solution, as well as enabling compression in vB ACP.


All times are GMT. The time now is 09:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01702 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete