getButterfly Logo getButterfly code wrangling since 2005

Our WordPress performance plugin, Lighthouse has been released and includes two new functions.

Scripts-to-footer function

As WordPress themes and plugins add JS scripts to footer, blocking page rendering, this option moves all correctly enqueued scripts (i.e. using the wp_enqueue_script() function) to footer. Note that it will not function as expected in all cases. If the theme has lots of scripts and dependencies, something might break. And, as Murphy says, if something can break, it will break.

Lighthouse - Scripts-to-Footer

Gravatar cache function

On an article-heavy site, using Gravatars can hurt performance a bit, as WordPress needs to connect to for every avatar to fetch it. This caching module saves a copy of the image on the server, and loads it 10 times faster next time, without the need for an external request. The cache expires in 14 days by default and is removed from the server in 90 days. Values can be changed to accommodate your needs.

Lighthouse - Gravatar Cache

Get the latest version now!

Subscribe to getButterfly Blog

Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.

If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.

Leave a reply