WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. MikaelLarsson
    Member
    Posted 2 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?

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

  2. Stas Su?cov
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

    Yes, works a lot better. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic