Support » Fixing WordPress » [Plugin: W3 Total Cache] jQuery and Minify

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: W3 Total Cache] jQuery and Minify’ is closed to new replies.