Support » Plugin: Better WordPress Minify » Asynchro loading for script

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


    That’s an advanced feature and can cause a lot of things to break, but sure I will take a look at it when there’s spare time :).

    yep it will be like an advance option 😉

    by the way many peoples want to easily change the expiration date of the cache so it will be simple to make a box like for indicate how many minutes the cache will expire (manual setting)

    me i change it dirrectly in the config.php

    and in the same file you can improve the compression level like :

    // try to disable output_compression (may not have an effect)
    ini_set(‘zlib.output_compression’, ‘8‘);


    and an other thing, it is normal that some script put in the box (put script in footer) still are in the header.. ? do you have an idea to force them ? or what is blocking them ?

    thanks a lot !

    Plugin Author Khang Minh


    Currently you have to use script handles, not script filename. So instead of jquery.js you will probably have to put in something like ‘jquery’. To look for script handles you can check a plugin’s codes.

    ^^thanks i know that the thing is it work for :


    But not for :
    js (js.js of the plugin kk star rating)
    jqueryeasingmin (jquery.easing.min.js)
    nivosliderpack (nivo.slider.pack.js)
    mousewheel (mousewheel.js)
    jquerygridnav (jquery.gridnav.js)

    Do you have an idea of why ?

    mmm.. if the script are in base 64 ?

    i will reconvert in normal js the script and test it

    Nop it change nothing.. damn i dont understand why some scrip dont want to move in the footer.. :p

    it’s because some script have a part print dirrectly in the head with


    so i change to : add_action(‘wp_footer’

    i look if there is no break

    then i put the handles in the option box and MAGIC it work !

    One more thing how can y make a combo like isolated minification + put in footer..

    because it does not work when i put the same handles in the 2 box option.

    I made a hack to add async to all of the HTML script insertions. Note that this will add async to ALL of them, which may break your page.

    • Deactivate Better WP Minify Plugin. Otherwise the file may be flagged as “inactive” and the update will not take effect.
    • Find file class-bwp-minify.php in the editor
    • Find function function get_minify_tag($string, $type, $media = '')
    • Find line $return = "<script type='text/javascript' src='" . $this->get_minify_src($string) . "'></script>\n";
    • Add “async” to that line: $return = "<script async type='text/javascript' src='" . $this->get_minify_src($string) . "'></script>\n";
    • Reactivate the plugin.
    • Make sure your site didn’t break.

    thanks a lot 😉 but a have made a custom version of the plugin that include the deferring of the minify script 😉

    and y have add a setting to exclude a script of the deferring function 😉

    and updated the library to by the way the plugin creator is working on a new version that include the deferring capabilitie

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Asynchro loading for script’ is closed to new replies.