WordPress.org

Ready to get started?Download WordPress

Forums

Scripts To Footer
Superb. (3 posts)

5 stars
  1. Bluemad
    Member
    Posted 6 months ago #

    Work out of the box. Super. Any way to move CSS before the fold like this?

  2. Joshua David Nelson
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks for the great rating!

    There is another plugin that uses very similar code to mine called JavaScript to Footer - it moves scripts and styles to the footer.

    That said, moving your styles in this broad-stroke can mess up the order they appear and alter your site's appearance. Generally speaking it is better to keep your styles in the head.

    If you are loading large stylesheet files or multiple stylesheets and you're trying to improve performance, you might consider combining and compressing your stylesheets with a plugin like Better WordPress Minify. Note: if you use this plugin or another like it, my plugin (Scripts to Footer) may conflict with it because it removes scripts from their typical location - however, I haven't tested that so do so at your own risk! (You can always deactivate it, of course). Let me know if it works for you.

  3. Bluemad
    Member
    Posted 5 months ago #

    Thank you Joshua your information. Instead of moving CSS to the footer, now I use Async JS and CSS plugin to asynchronously load CSS (only CSS).

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.