Viewing 6 replies - 1 through 6 (of 6 total)
  • Remove whitespace and comments. Make sure you don’t have combine only checked.

    Thread Starter lom

    (@deindeal)

    @destac: I’ve activated all options in W3TC. Or do mean, that I have to remove and minify the whitespaces and comments in each css and JS file by hand? I can do, but every time a plugin is updating I’ve to do it again?!

    After the minification via W3TC the JS(e.g.: default.include-footer.665645.js and CSS files looks like:

    /* maxmegamenu.js */

    /* 1 */ /*jslint browser: true, white: true */
    /* 2 */ /*global console,jQuery,megamenu,window,navigator*/
    /* 3 */ ….

    /* nextjs.js */

    /* 101 */ if ( !plugin.isDesktopView() && anchor.parent().hasClass(‘mega-hide-sub-menu-on-mobile’) ) {

    /* next2js.js */

    /* 101 */ if ( !plugin.isDesktopView() && anchor.parent().hasClass(‘mega-hide-sub-menu-on-mobile’) ) {

    So in my opionion this is not realy good minified?!

    No in the minify settings there are options.

    1. Make sure that the combine only box is not checked.

    2. Make sure that the remove white space and comments is checked.

    Thread Starter lom

    (@deindeal)

    Hi,
    there is no “white space remove” checkbox. Here you can see what I’ve configured:
    CSS: http://postimg.org/image/bs7ly1q7v/
    JS: http://postimg.org/image/l8fi52xh7/

    But the JS Files still looks like I posted before.

    Same here:

    every 50 lines I got the name of the style sheet … and the line numbers …

    /* 45   */ del, dfn, em, font, ins, kbd, q, s, samp,
    /* 46   */ small, strike, strong, sub, sup, tt, var,
    /* 47   */ dl, dt, dd, ol, ul, li,
    /* 48   */ fieldset, form, label, legend,
    /* 49   */ table, caption, tbody, tfoot, thead, tr, th, td {
    /* 50   */ 	border: 0;
    
    /* style.css */
    
    /* 51   */ 	font-family: inherit;
    /* 52   */ 	font-size: 100%;
    /* 53   */ 	font-style: inherit;
    /* 54   */ 	font-weight: inherit;
    /* 55   */ 	margin: 0;
    /* 56   */ 	outline: 0;
    /* 57   */ 	padding: 0;

    Maybe I don’t understand the concept of getting the css file smaller by removing linebreaks and comment.

    f***k … that’s really mean.

    I just found out that I get the line numbers from the debugging options.

    It says “Detailed information about each cache will be appended in (publicly available) HTML comments in the page’s source code. Performance in this mode will not be optimal, use sparingly and disable when not in use.”

    But it also wirtes into the minified CSS …. 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Minify JS and CSS works buts is still to large’ is closed to new replies.