• Resolved charmedhawk

    (@charmedhawk)


    We are loving Asset CleanUp and what it does for our site; however, we could use a little assistance. When I run a speed test using GTmetrix, the results show 4 JavaScripts within the Asset CleanUp folders that can be minified and 2 CSS files within the Asset CleanUp folders that can be minified.

    Here are the results:
    JavaScript:
    Minifying /cache/asset-cleanup/js/body-b5d2e2293a56302ef61354b788c57f878dcdf89e.js could save 1.4KiB (1% reduction) after compression.
    Minifying /cache/asset-cleanup/js/body-ab661f9cadc66253a25746e2111a621d6d573627.js could save 680B (2% reduction) after compression.
    Minifying /cache/asset-cleanup/js/head-75ef5da47f18d85d5ccad21d7fecf9fef5864d19.js could save 445B (1% reduction) after compression.
    Minifying /cache/asset-cleanup/js/item/prisna-wp-translate-v1d7bfbe8f6c123c10441efca1f8413ca730e6d95.js could save 175B (1% reduction) after compression.

    CSS:
    Minifying /cache/asset-cleanup/css/head-fa5aebbca7c06e2ff78a31cbb63d1d2393ee56ed.css could save 639B (1% reduction) after compression. See optimized version.
    Minifying /cache/asset-cleanup/css/item/prisna-wp-translate-v8df034b0d45468ad561819cf878189d226bffaff.css could save 162B (6% reduction) after compression. See optimized version.

    Is there anything I can do to ensure that these files are minified? I have minify turned on in the Asset CleanUp settings.

    Thanks for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @charmedhawk I’m glad you like the plugin and hopefully, you’ll be using it in the long run!

    As for the GTmetrix reports, I would frankly ignore them as we are talking about a few KB here which are extra things added to the cached files which are the comments that make reference to each file that is there. It’s to make things easier for developers when they are doing debugging, they’re checking a combined file that is made up of 7 files (just an example). The comments left there contain the path to each of the files to understand what was combined. That extra KB is a small price to pay so to say for having the file more readable/debuggable.

    However, since there are plenty of people who literally want every KB squeezed out of a large file, I’ll consider changing the plugin where an option will be activated and those comments would be stripped. Whenever the developer wants to do some debugging, then they can switch back to the previous setting, which would print the comments 😉

    I can update this topic when this option will be added to the plugin so you will be alerted when it will be available. In my opinion, this is just a fuss, but it’s also nice to work on a client’s website and show him/her that GTmetrix reports 100% instead of 99% for minifying CSS/JS files 😀

    Thread Starter charmedhawk

    (@charmedhawk)

    @gabelivan Thanks so much for your response and detailed explanation. I really appreciate you considering adding the option to strip the comments in the plugin.

    I will surely be using this plugin for a very long time…

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Minify JavaScript & CSS’ is closed to new replies.