W3TC can't minify JS

resolved (3 posts) (2 voices)

  1. Netipro
    Member

    Hello,

    I use W3 Total cache. I enable minify (apc opcode) but I can't enable the minify for JS
    If I enble minify JS, then the sliders doesn't work anymore (it freezes)

    Also I enable Html (disk enhanced) minify, The settings are
    Html : enable
    Inline JS enable

    But if I set Inline css to enable then the silider is not working anymore and others pbms appears.

    I I recall well I had tested infocus 2.3 with W3TC and all the minify settings worked well. The pbms seems to be only since v2.4
    Surely because there is query strings variable in the jss uri


    Compressing the following resources with gzip could reduce their transfer size by 182.1KiB (67% reduction).

    Compressing http://domain.fr/wp-includes/js/jquery/jquery.js?ver=1.7.1 could save 59.3KiB (64% reduction).
    Compressing http://domain.fr/wp-content/themes/infocus/lib/scripts/fonts/colaboratelight.js?ver=2.4 could save 34.8KiB (72% reduction).
    Compressing http://domain.fr/wp-content/themes/infocus/lib/scripts/custom.js?ver=2.4 could save 30.5KiB (67% reduction).
    Compressing http://domain.fr/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.8.16 could save 24.9KiB (69% reduction).
    Compressing http://domain.fr/wp-content/themes/infocus/lib/scripts/prettyphoto/js/jquery.prettyPhoto.js?ver=2.4 could save 16.9KiB (73% reduction).
    Compressing http://domain.fr/wp-content/themes/infocus/lib/scripts/cufon-yui.js?ver=2.4 could save 10.5KiB (59% reduction).
    Compressing http://domain.fr/wp-content/themes/infocus/lib/scripts/tabs.min.js?ver=2.4 could save 2.9KiB (61% reduction).
    Compressing http://domain.fr/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.16 could save 2.3KiB (54% reduction).


    And also


    Minifying the following JavaScript resources could reduce their size by 10.9KiB (8% reduction).

    Minifying http://domain.fr/wp-content/themes/infocus/lib/scripts/custom.js?ver=2.4 could save 9.4KiB (21% reduction).
    Minifying http://domain.fr/wp-content/themes/infocus/lib/scripts/fonts/colaboratelight.js?ver=2.4 could save 505B (2% reduction).
    Minifying http://domain.fr/wp-content/themes/infocus/lib/scripts/tabs.min.js?ver=2.4 could save 431B (9% reduction).
    Minifying http://domain.fr/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.8.16 could save 370B (2% reduction).
    Minifying http://cardiopro.fr/wp-content/themes/infocus/lib/scripts/prettyphoto/js/jquery.prettyPhoto.js?ver=2.4 could save 284B (2% reduction).domain

    Do you know how to enable the JS minify without breaking the sliders ?

    Thanks

    Posted 4 months ago #
  2. Elliott
    Support

    Hello Netipro,

    Yes I remember that plugin causing issues. If you absolutely need to minify the JS there are lots of tools out there you can use, http://jscompress.com/, http://minifyjavascript.com/.

    Pretty much the only file that needs it is our /wp-content/themes/[your_theme]/lib/scripts/custom.js. All the other scripts are already minified.

    Posted 4 months ago #
  3. Netipro
    Member

    Ok thanks, I thought it used to work with 2.3
    Anyway, Bwp minify does the job, and others should to

    Thanks for the quick reply as usual

    Regards

    Pascal

    Posted 4 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme