WordPress.org

Forums

Scripts To Footer
[resolved] Do you recommend this plugin? (5 posts)

  1. Magistar
    Member
    Posted 1 year ago #

    I found this plugin from a reference on your post on how to do it manually. Obviously I was looking to increase my pagespeed.

    Regarding that; do you recommend using this plugin. Or is it "better" to follow the post you created here: http://www.kevinleary.net/move-javascript-bottom-wordpress/ ?

    https://wordpress.org/plugins/scripts-to-footerphp/

  2. Joshua David Nelson
    Member
    Plugin Author

    Posted 1 year ago #

    Magistar,

    This plugin is that code, but set up in such a way as to be more useful ;-) You can turn the plugin on/off for specific pages (or single post pages) and there are a few filters if you want to get really creative.

    The added benefit of a plugin is that someone else is maintaining it and improving it, so your code will stay relevant and up-to-date. And you can deactivate it at the push of a button.

    Cheers,
    Joshua

  3. Magistar
    Member
    Posted 1 year ago #

    Ok you have convinced me to try the plugin. It worked like a charm. All Javascripts were moved to the footer. It also did not conflict with Totalcache minify/combine. Awesome :)!

    New question: Can I setup this plugin to also move some specific css files? My template has so many (16) and I would like to move some of those to the footer.

  4. Joshua David Nelson
    Member
    Plugin Author

    Posted 1 year ago #

    Magistar,

    Glad it worked for you!

    I would not recommend moving your css files, it will in 99% of cases change the look of your site drastically, because the CSS needs to load before your HTML elements in order for the browser to know how to style them.

    It would be better to move them to a CDN or combine them all into a single file.

    Best,
    joshua

  5. Magistar
    Member
    Posted 1 year ago #

    Google's pagerank showed some "warnings" about blocking css elements for the mobile page.

    (Totalcache combine somehow produced 3 css files that had each had a 903ms wait).

    So thanks for the warning regarding moving it manually! I thought it would be like javascript :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scripts To Footer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.