• Hi, I’m trying to optimize my site for mobile and I changed the JS Minify settings for minify – JS blocking auto (default) to async, deleted all the caches but ‘<script async src=…’ is not created to the minified version of the script, not sure if I’m doing something wrong but this is so simple it should work with no more effort, though.

    https://wordpress.org/plugins/w3-total-cache/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, I’m having the same problem. Here a screen capture: https://dl.dropboxusercontent.com/u/3724852/wp_js_async.png

    I also have tested from automatic to manual minify mode and from minify to combine only and async is not added to the scripts.

    Any light on this issue would be appreciated.

    Thank you

    I was having same problem – try toggling it down to asyncsrc and then back up to async. That seemed to do the trick for me.

    I have this issue also. I don’t see any option for ‘asyncsrc’ as mentioned above. Any fixes?

    Please submit a bug report through the Support tab of the plugin.

    I have the same problem.
    Confirm that ‘async’ isn’t added.

    Tim

    (@timstl)

    Has anyone ever solved this issue? Having the same problem.

    Thanks,

    Tim

    Thread Starter RXC

    (@rxc)

    When I first wrote this post, I was thinking using async as Google recommends using it and I hadn’t a real perspective about this concept.

    I just thought that I needed to add the word async to my scripts to be OK with Google.

    Later, I managed to fix it by modifying one single line in one file inside W3TC plugin (a really simple fix by adding the word async in the right place, just it), but I soon realized that this change broke my site completely, as the async loading of scripts means that you don’t control the order where scripts are loaded, so there are times your site loads right and other that it doesn’t with lots of undefined functions. It depends on every user browser and it’s something random.

    Using async is a feature that really needs heavy knowledge of programming, and I don’t recommend using it unless you are able to modify several files inside your theme. It requires knowing what scripts are loaded, what for are each of them and that you are able to modify those scripts to wait for their dependencies to be loaded first.

    So, as a rule of thumb, if you are not able to find for yourself the file that should be modified inside W3TC, async is not for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Minify settings – JS async not working’ is closed to new replies.