WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Paul Skip Brown
    Member
    Posted 8 months 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.

    http://wordpress.org/plugins/autoptimize/

  2. futtta
    Member
    Plugin Author

    Posted 8 months 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
    Member
    Posted 8 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic