• Resolved MikaelLarsson

    (@mikaellarsson)


    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?

    https://www.ads-software.com/extend/plugins/w3-total-cache/

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

    Thread Starter MikaelLarsson

    (@mikaellarsson)

    Yes, works a lot better. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] JS minification – how to?’ is closed to new replies.