Use the code PERFMATTERS for 10% off!

How to disable embeds in WordPress

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.

wp-embed.min.js
wp-embed.min.js

Disable embeds

Follow the steps below to disable embeds.

Step 1

Click into the Perfmatters plugin settings.

Perfmatters plugin settings
Perfmatters plugin settings

Step 2

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

Disable embeds with Perfmatters plugin
Disable embeds with Perfmatters plugin

Step 3

Scroll down and click “Save Changes.”

Was this article helpful?

Related Articles