Open the source of almost any WordPress page and you’ll find things you didn’t add: an emoji script, a stylesheet for an icon font, a handful of <link> tags in the head. Each exists for a reason, but not necessarily for your site. In our WooCommerce speed guide we stopped a plugin loading its files everywhere. This post does the same for WordPress itself.
Add one snippet, clear your cache, then click through your home page, a post, a form and (if you have one) the shop. If something looks wrong, you’ll know which change caused it.
1. The emoji script
WordPress loads a script on every page that checks whether the visitor’s device can show emoji, and swaps in images if it can’t. Every current browser and operating system shows emoji on its own. Removing the script doesn’t remove emoji: they still appear, using the visitor’s system font.
2. Dashicons for logged-out visitors
Dashicons is the icon font for wp-admin and the admin bar. Logged-out visitors don’t see the admin bar, but some themes still load the stylesheet for them. This removes it when the admin bar isn’t showing:
If your theme or a plugin uses Dashicons on the front end (look for icons that turn into empty squares), leave this one out.
3. jQuery Migrate
jQuery Migrate exists so very old jQuery code keeps working. Modern themes and plugins don’t need it. Remove it, then open your browser’s console on a few pages: if nothing new appears in red, you didn’t need it.
4. Tags in the page head
WordPress adds several <link> tags to every page head: a shortlink, links to the previous and next posts, a REST API discovery link and a manifest for Windows Live Writer, a desktop blogging app that was discontinued years ago. None of them help visitors.
5. oEmbed, if you don’t embed your own posts
oEmbed lets other sites embed previews of your posts, and loads a script so your posts can do the same with each other. If you don’t use that, switch it off. Embed blocks for YouTube, Vimeo and other services keep working. A bare video link typed into classic content no longer turns into a player, though, so use an Embed block for those. After adding it, save your permalinks once (Settings → Permalinks → Save Changes).
6. Heartbeat for visitors
The Heartbeat API keeps wp-admin up to date while you work: autosave, post locking and the “you’ve been logged out” warning. It doesn’t need to run for logged-out visitors, and it doesn’t need to run every 15 to 60 seconds on every admin screen. This turns it off on the front end and slows it down in wp-admin, without breaking any of those features:
Open your home page logged out and look at the Network tab in your browser’s developer tools. You should see fewer requests than before, no wp-emoji-release.min.js, no dashicons.min.css and no jquery-migrate.min.js. Your pages should look exactly the same.
Something broke3 common fixes
- A slider, menu or form stopped working. Put jQuery Migrate back first. It’s the change most likely to affect older code.
- Icons became empty squares. Your theme uses Dashicons on the front end. Remove the Dashicons snippet.
- Nothing changed. Clear your page cache and any CDN, and check that your caching or optimisation plugin isn’t combining files from an old copy.
Summary
Each of these is a small saving, but they apply to every page view. Remove the emoji script and the head tags first, since they’re safe on almost every site. Then try Dashicons, jQuery Migrate and oEmbed one at a time, checking your site after each. Finish by slowing Heartbeat down in wp-admin, which also helps when several people edit at once.
Was this helpful?
Sorry about that. What was missing?
Thanks for your feedback!

