Embeds were released with WordPress 4.4. However, with this came some extra inline code they add to your site (link rel tags), including a JavaScript file (wp-embed.min.js
). You can disable embeds altogether to speed things up.
Disabling embeds on your WordPress site will do the following:
- It prevents others from embedding your site, as well as you from embedding sites.
- Removes oEmbed-specific JavaScript.
- Disables filtering of oEmbed results.
- Removes oEmbed discovery links.
- Turns off oEmbed auto discovery.
- Removes all embed rewrite rules.
Disable embeds
Follow the steps below to disable embeds.
Step 1
Click into the Perfmatters plugin settings.
Step 2
Make sure you’re on the “General” submenu.
Step 3
Toggle on “Disable Embeds.”
Step 4
Scroll down and click “Save Changes.”