Grow your CSS skills. Land your dream job.

javascript files not being gzipped in wordpress

  • # January 12, 2013 at 6:59 pm

    Hi All

    I have WP Total Cache and WP Minify plugins installed on my wordpress site, and for some reasons my javascript files are not being gzipped, but everything else is.

    Are there certain settings I need to adjust to enable javascript files?

    Let me know if you need any more information.

    Thanks

    # January 13, 2013 at 9:27 am

    I’m not personally familiar with those plugins, so this is more of a shot in the dark, but do you have access to your .htaccess file on your server? If so, try downloading and using the Gzip compression section of the [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate “HTML5 Boilerplate”) setup. It has javascripts included in the list of files types to gzip for you. Open up the .htaccess file on GitHub and look around line 152 or so to find the module. Just copy that into your .htaccess file on your server and it *should* do it for you.

    Alternatively, there appears to be [Good Documentation](http://zemalf.com/1443/w3-total-cache/ “Good Documentation”) on the subject of setting up Total Cache.

    Sorry I can’t be of more help, but hopefully something here will spark something for you.

    # January 13, 2013 at 11:41 am

    @ilusk thanks for the help. I found out that I had left one box unchecked in the total cache plugin, once I checked that, it was working fine!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".