Embeds were released with WordPress 4.4. This is basically the magic that auto converts your YouTube videos, Tweets, and URLs into pretty previews while you are editing. However, this actually loads a JavaScript file (wp-embed.min.js
) on every page of your website. If you don’t care about the auto converting preview, you can disable this across your site.

Disable embeds
Follow the steps below to disable embeds.
Step 1
Click into the Perfmatters plugin settings.

Step 2
Under the “Options” tab and “General” sub-navigation menu, toggle on “Disable Embeds.”

Step 3
Scroll down and click “Save Changes.”