Hi guys,
All DNForum pages can be made smaller (~15%) and load faster by compressing .css and .js files.
It's a simple tweak to the .htaccess file by adding the following code:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
<files *.php>
SetOutputFilter DEFLATE
</files>
Code source: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
There's plenty of other tweaks but this one is so quick and easy. Hopefully it can be added to improve everyone's experience on the website.
All DNForum pages can be made smaller (~15%) and load faster by compressing .css and .js files.
It's a simple tweak to the .htaccess file by adding the following code:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
<files *.php>
SetOutputFilter DEFLATE
</files>
Code source: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
There's plenty of other tweaks but this one is so quick and easy. Hopefully it can be added to improve everyone's experience on the website.
Upvote
0