mod_deflate gzip your javascript
I been doing some heavy optimizing on my site and I noticed my mybb javascripts weren't compressed. Since prototype can be 100k itself and you can trim that to about 50k with mod_deflate I add this to my apache conf:

AddOutputFilterByType DEFLATE application/x-javascript

BINGO...I have compressed javascript. Now I noticed that mybboard doesn't ues it for their JS but maybe with faster js loading some of the ajax errors might diminish. At least that's my hope.

# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
Hmm...well if you check the link I sent you then you will see your javascript isn't compressed.

Try also add application/javascript. I have mine directly in a httpd conf files (httpd-deflate.conf).

Oh and your CSS isn't deflated either.

Seems the mod_deflate directives won't work in htaccess.

From another site:
Quote:–UPDATE– When testing the compression of my pages, I found that some JS files weren’t being compressed (Use Web Developers Tool - Information > View Document Size). If this is the case for you, you can add the following code to your .htaccess file:

<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE

EDIT: Okay I tried now at MybbCentral (on Dreamhost) and I had to add the FileMatch directives for the javascript to deflate. It worked. So I am going to place this as a bug.
Why won't it work by mime type? Why we do we have to do it as a file extension? Sounds like a bug with the directive, not MyBB.

Forum Jump:

Users browsing this thread: 1 Guest(s)