Free Advice to Compress Site

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Posts: 55
Joined: Sun Dec 28, 2014 11:59 pm

Free Advice to Compress Site

Post by timbosto » Thu Jul 16, 2015 4:28 pm


This went from a question to free advice...I kinda did my site backwards.
I built it laden with java, css and extensions then decided to seo it ...ooops!
I've corrected all this.... This might get deleted, I don't know?

You need to compress site by:
1. Enabling compression ( you most likely have Gzip installed on server already) call your host and they will
enable that or mod_deflate depending on your server type. This will compress, Minify CSS, javascript and html.

2. Leverage browser caching:
you need to set an expiry date on your images,css and java
go to .htaccess file on server and add this:

<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 year”

# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType text/css "access 1 month”

# Javascript
ExpiresByType application/javascript "access plus 1 year"


3. Eliminate render-blocking JavaScript and CSS in above-the-fold content

To do this go to
it will test your pages for speed and a lot more.
it will give you downloadable files to tweak your files but you can't edit code in
wb you have to hard code it directly to your server in a browser.

PS.Global replace is a lot easier than editing a page at a time!

I may be blabbing here, Hope it helps someone!

Posts: 95
Joined: Tue Feb 28, 2012 10:49 pm

Re: Free Advice to Compress Site

Post by derold » Fri Jun 23, 2017 9:24 pm

wb 12

I just wanted to say thank you for the .htaccess code snippet. I now have 100% mobile 100% Desktop

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests