WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3 Total Cache Source code still has all the original .js in it (4 posts)

  1. madeglobal
    Member
    Posted 3 years ago #

    Hi,

    I upgraded to the latest version of w3 and now when I look at my source code for a page, I find that as well as the new include.js file created by the minify, all of the original .js files are still included.

    The single.include.xxxxxxxx.js file contains all of the javascript that i would expect. The problem is that it has not removed them from a little later in the html source code.

    Page is here: http://www.theanneboleynfiles.com/

    What am I doing wrong?

    Thanks for all help and advice!

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Are you using the latest plugin?

  3. madeglobal
    Member
    Posted 3 years ago #

    Hi Frederick,

    Firstly, you are a star for replying - thank you!

    I am using Version 0.9.1.2 which I believe is the latest version.

    I'm getting the feeling that it is the dependencies created by wp_register_script or wp_enqueue_script which might be bringing some of the minified javascript back in again.

    To explain my thinking ... there are a few js files which cannot be minimised (because they are actually php files used to create javascript) but these are included as requiring jquery first.

    Now, jquery IS in the minified file (good!) but it gets included again.

    I'm feeling that this is because the wp_register_script no longer knows that the jquery has been included through your minimiser, and so it included it again. Is that possible??

    Thanks for all your help, and willing to try any tests you can suggest!

  4. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    W3TC performs it's operations on the output of WordPress, how your templates work isn't really relevant. Can you submit a bug submission form from the support tab of the plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic