Getting rid of gravatar from WordPress

Even though I had disabled Avatars completely under Settings => Discussions, my site was still loading javascrips and CSS from s.gravatar.com (secure.gravatar.com if you are using SSL). So what is up?

First of why care? Well since I have disabled avatars since I don’t need them, I don’t want my visitors to download unnecessary files. Just load your page and start your browsers developers tools (Chrome shortcut is Ctrl+Shift+I). There you should be able to see that your site is currently downloading lots of files, each file is a possible delay. I use GTMetrix sometimes just what they think of my site.

Well back to the what is happening. Without any need my site is instructing each visitor to download the following javascript and CSS files:

URL
http://s.gravatar.com/js/gprofiles.js?ver=2014Apraa
http://s.gravatar.com/css/hovercard.css?ver=2014Apraa
http://s.gravatar.com/css/services.css?ver=2014Apraa

Since one of the files are called hovercard.css we know that these files are from the plugin jetpack (well not really but I know). Armed with that I googled a bit. And found how to disable hovercards in wordpress. Well that seemed easy, too easy. There is no checkbox with the text Gravatar Hovercards. Well guess what. If you enable avatars, then the option will be available.

Solution

  • Enable Avatars
  • Disable Gravatar Hovercards
  • Disable Avatars

And now in the future remember to disable the hovercards before all the avatars.

 

Comments

  1. ΞXΤЯ3МΞ says:

    I did run a scan using Gtmetrix and found the gravatar requests loads at the end which increased my load time. After some googling, I found your article. My site is much faster after disabling the hovercards. Thanks a ton! Cheers!

Leave a Reply