• Hi,

    Is there a way to move the location of the minified files in the <head> section of the website?

    I have a optimized situation, but it’s not 100% optimized. There’s an inline scripts between the CSS and JS minified files.

    This way it’s blocking…

    I would like to move the JS up and place it just after the minified CSS.

    How?

    Thanks!

    Rick

    https://www.ads-software.com/plugins/bwp-minify/

    [Moderator Note: No bumping. If it’s that urgent, consider hiring someone instead.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    You can put those JS files’ handles into the setting that says: “Scripts to be minified in header”, but that might break your site so be careful.

    Thread Starter Rick Sportel

    (@ricksportel)

    Hello Khang Minh,

    Thanks for your reply. I think you didn’t understand my question correctly (or the question was not clear ;-))

    I would like to change the place in the header where the combined/minified files are being placed.

    Right now my website’s head-section roughly looks like this:

    1. Combined/Minified CSS
    2. Inline scripts
    3. Combined/Minified JS

    The inline script is blocking the downloading of external resources. So what I want is to change it to this:

    1. Combined/Minified CSS
    2. Combined/Minified JS
    3. Inline scripts

    Best practice is to load inline script after all external resources.

    Can it be done by a PHP function in my functions.php? For example by changing the priority number of the BWP Minify function that adds the combine-minify function in the head section??

    Thank you.

    Rick

    Plugin Author Khang Minh

    (@oddoneout)

    What kind of inline scripts do you have? How do you print them? By hooking to wp_head or something?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change location of minified files in’ is closed to new replies.