Viewing 1 replies (of 1 total)
  • Ben

    (@benbornschein)

    Well sometimes you can’t get just one JavaScript file, because some JavaScript files are injected after <head> was completed. You also have JavaScript that wants to be placed into the footer. So you have at least two JavaScript files, a header JavaScript file and a footer JavaScript file.

    You can try advanced JavaScript minification settings and manually select which file should be combined. You can also check out this great guide for W3 Total Cache https://premium.wpmudev.org/blog/w3-total-cache-settings/

    If you don’t want to grapple with this I can recommend you my free Caching Plugin. But this will also generate at least two JavaScript files (header and footer). For your site I would recommend you to activate Merge JavaScript files and Late Initialization (in my plugin under Advanced Settings > JavaScript).

Viewing 1 replies (of 1 total)

The topic ‘Combine external JavaScript’ is closed to new replies.