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)

Pirat3 07-31-2008 06:08 PM

So does this work with VBSEO as long as I do this:
Quote:

Try to modify your .htaccess file:
FIND:
Code:

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)

REPLACE WITH:
Code:

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|redir\.php)

(i.e. add redir.php to the exclusion list)

msalman 08-03-2008 12:14 AM

^yes, it works. I had the same problem.

Pirat3 08-03-2008 06:28 PM

how would you know if this mod is or is not working?

Assim 08-07-2008 06:28 AM

In my .htaccess, I have some stuff written in it, so I have to copy the contents of this .htaccess and put them right under that text.

It will work that way, right?

iogames 08-08-2008 03:23 PM

can I exclude some folders from the effects of this?

Dabbi 08-08-2008 07:05 PM

Wow... this works really well... thank you so much! :)

iogames 08-16-2008 05:31 PM

there's a line of code where can I exclude some Folders? in those folders I have something that got ugly decomposed for yslow

sross 08-17-2008 09:29 AM

I am so happy this mod got a good fix for vbseo. I have it running now and it makes an absolutely huge difference in speed. Thanks

iogames 08-19-2008 04:33 AM

Quote:

Originally Posted by sross (Post 1600607)
I am so happy this mod got a good fix for vbseo. I have it running now and it makes an absolutely huge difference in speed. Thanks

Happy for you, but I still want to know know why some of my non vbulletin functions got ugly decompose...
Can I exclude some folders from the effects of this hack?
I paid for those scripts and this hacks render the application useless

tekguru 08-19-2008 09:33 AM

You may want to edit redir.php and remove the 'JS' file type. This will stop it caching javascript which resolved a lot of issues I had.

iogames 08-21-2008 03:43 PM

Support for YSLOW is ' Ya'slow! '

nabil_kadimi 08-25-2008 10:31 AM

Best mod I've ever seen
Forum changed for F52 to A93 after uploading tow files... 5 starts... Installed... Added to MOTM

Ray2khax 08-25-2008 11:43 AM

Very nice mod hope to see this is Become nominated soon :)

VB-STYLE 08-29-2008 09:59 AM

I got Java Problems after upgrade to 3.7.3
I have deleted.

I think the problem is because of this


Code:

RewriteEngine On
AddDefaultCharset Off


####Gzip
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)(js|css|gif|jpg)$ 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>


ehsanix 08-29-2008 11:30 PM

steel using it
there is a huge difference on loading time of web page
thnx 4 sharing it
everybody could use it on any website (amazing) not just for vb!

hjogi 08-31-2008 09:11 AM

anyone that has got problem with vBull 3.7.3 ?

VB-STYLE 08-31-2008 12:55 PM

yes :(

https://vborg.vbsupport.ru/showpost....&postcount=374

madmax1228 08-31-2008 01:01 PM

I am having a few Java erros as well.

zelnik 09-04-2008 11:06 PM

any idea when a 3.7.3 compatible version will be released since people are mentioning errors?

trilljester 09-09-2008 07:21 PM

I had this installed, but uninstalled it, as it conflicted with VBSEO and the gain in performance was nominal, not worth fiddling with VBSEO and the redir.php script to get everything to work properly.

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.

Chadi 10-16-2008 02:42 AM

Thanks.
Quote:

For Caching/Expires, I used the headers apache 2 module, with this line for config to cover most everything.
You're putting this code where? The expires rules I posted before apparently are not getting picked up right only on 3 external .js scripts I'm using, according to the yslow/firebug tool. Is there a possible workaround for external requests?

(no expires) http://www.verse-a-day.com/js/vad.js
(no expires) http://www.cbox.ws/box/click18c2.wav
(no expires) http://www.cbox.ws/box/relay.swf?hos...s&port=443&t=2

I'm still having issues with the following:
- minify js
- make fewer http requests



Quote:

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


I did a search templates search for both .css and .js, did not find any "external" request at all, except for two .js for bible verses on the home page mainly. Not 21 total.

Emperor_Mel 11-09-2008 10:24 AM

A noticable improvement.. Thanks :)

GafferSports 11-09-2008 01:50 PM

Thank you

MuTheMatrix 12-23-2008 08:03 PM

thanks a lot for this.

otto07 12-24-2008 06:31 AM

great work works perfectly thnx

K4GAP 12-24-2008 07:04 AM

I can not believe how good this works!! Why wouldn't this be included as a part of VB?

Thank you
Thank you
Thank you

lucky51 12-24-2008 10:53 AM

where i can find these line

Code:

#LoadModule rewrite_module modules/mod_rewrite.so
remove # as:
LoadModule rewrite_module modules/mod_rewrite.so

thanks

soundbarrierpro 12-24-2008 01:40 PM

Quote:

Originally Posted by GaryT (Post 1692663)
I can not believe how good this works!! Why wouldn't this be included as a part of VB?

Thank you
Thank you
Thank you

Because it's not tested with all of the mods. It doesn't work with a lot of mods and causes compatibility issues. It's sorta try on the fly.

***Make sure you backup before using

blackberry 12-24-2008 05:53 PM

hmmm nice

done

Saviour 12-24-2008 10:12 PM

This mod seems to have issues with this mod: https://vborg.vbsupport.ru/showthrea...ght=Cafe+Press

Unfortunately, I had to uninstall it.


All times are GMT. The time now is 06:35 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.01740 seconds
  • Memory Usage 1,827KB
  • 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
  • (4)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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