[resolved] Minifying JS and Jetpack Like Button (3 posts)

  1. Paul Skip Brown
    Posted 1 year ago #

    I gave this a try this afternoon. Spent quite a few hours tinkering and have ended up having to force JS in head and look for JS only in head. Including all the usual external JS calls to Google, social media etc that got me down from 50 to 25 '.js' references.

    I can get down further by targeting .js files in the body but the WordPress Jetpack Like Button then stops functioning (I'm wondering whether it's worth it) - I've tried excluding specific files with no success. I notice that some plugins seem to put their JS code in the body when I think it could really go in the head and be included in the minified file. Has anybody got any suggestions either re the like button or re getting the JS files I target moved to the head? Many thanks.

    You can see my current functioning set up at http://skipology.com/iphone-photography-tutorial-urban-dweller/ - there is a load delay but I think that's partly an issue with the server.


  2. Frank Goossens
    Plugin Author

    Posted 1 year ago #

    What does the "like button" do; display that block with the like counts on facebook/twitter/g+? Or the block underneath the article used to share?

  3. Paul Skip Brown
    Posted 1 year ago #

    Hi Frank, apologies I thought I'd sent another comment last night but must have closed the browser before sending. I decided the WordPress Like Button (its a WordPress blog like button in the Jetpack plugin - not the social media sharing stuff) wasn't worth it so I switched it off. Everything seems to be running fine.

    Today's project is W3 Total Cache for the stuff excluding minifying and linking in to a CDN. Wish me luck :)

    Please regard this as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Autoptimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic