W3 Total Cache
[resolved] JS minification - how to? (3 posts)

  1. MikaelLarsson
    Posted 4 years ago #

    Using minification, the combined JS-file is placed directly after the <head>-tag but the jQuery file is not included and is introduced later in the <head> section resulting in errors.

    I´m reading in the FAQ that your´e supposed to add all js-files via a help-button in the Minify settings-tab but I can´t find such a button. I recall using this function on other sites before, why is it not there anymore?


  2. Stas Su?cov
    Posted 4 years ago #

    Looks like your theme has some <script...></script> tags hardcoded in the header.
    To properly work with Minify, scripts should be inserted using WordPress API. Check wp enqueue script().

  3. MikaelLarsson
    Posted 4 years ago #

    Yes, works a lot better. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic