• Resolved vale2302

    (@vale2302)


    Hello, your plugin is more than excellent, It has improved my site dramatically!
    I want to thank you for that.

    I Just have one situation: there are 2 files at the top of the page which results in render blocking the page. I′ve tested my site on Pagespeed and I am getting the suggestion to combine these header / footer JS min files:
    /wp-content/uploads/fvm/out/footer-69694cbc-1530221502.min.js
    /wp-content/uploads/fvm/out/header-f49c1376-1530221502.min.js

    I am also using W3 total cache but when I go to minifiy only these two files it messes out the site
    How can I combine those or perhaps another suggestion…
    Thanks again for a wonderful plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    First ting first, you cannot do double minification. You have to disable minification on w3tc or even on your theme options, if you have it.

    Double minification breaks things, besides you are making your server repeat itself, thus slowing it down.

    As for merging header and footer files, it doesn’t work the way you think it works.

    You can move scripts to the footer, but there is no way to automatically move them from the footer to the header without breaking things. Nevertheless, moving your jQuery and possibly some other libraries such as galleries, etc, would break your site.

    The order of execution matters, so if a developer enqueued their files on the header and others choose to enqueue them in the footer, there is probably a reason for that.

    FVM doesn’t touch the order of scripts, it only merges and minifies whatever is in the header or whatever it’s on the footer separately.

    If you hire a developer however, they can check if your scripts can be moved to the header or to the footer. It’s usually more compatible to move them to the header, but then they will probably need to edit some plugins code, which is not recommended if you want to keep doing updates.

    That being said, you can try a plugin to move all your scripts to the footer, such as the one below:
    https://www.ads-software.com/plugins/scripts-to-footerphp/

    But be advised that some stuff may break and you may have “undefined” errors on the console log. Look into google chrome developer tools console, for information on that.

    If your scripts are all in the footer, and if they are on the same domain, FVM will only use one file.

    Also try the option to defer for pagespeed, and read our faqs.
    https://www.ads-software.com/plugins/fast-velocity-minify/faq/

Viewing 1 replies (of 1 total)
  • The topic ‘Combine heather /footer min’ is closed to new replies.