WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
jQuery and Minify (2 posts)

  1. smithwib
    Member
    Posted 2 years ago #

    Thanks much for this plugin - it is very well though out, brings together a lot of different caching strategies and makes them very manageable.

    One issue I could use guidance on. After enabling JS Minify on a site, I started seeing an error "Jquery is not defined". I traced it to the combined js file that is added after the <head> tag. It does not in itself include jquery -- that appears further down in the head section as its own script tag, which explains why it cannot be referenced.

    Is there a strategy that is recommended when using wp_enqueue_script in order that jQuery shows up first before the other dependent scripts? Should dependents go in the footer?

    Thanks in advance.

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    That's tricky depending on your other JS code. Sometimes you'll need to embed jQuery in the head and then dependent scripts after <body> in order to resolve that issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic