What does wp-embed.min.js do in WordPress 4.4?

Question

  1. What does the wp-embed.min.js file do? I noticed it is added to the end of my blog page footer.
  2. How can I get rid of it?

Effort

After some googling and I found Embeds on the Codex. Why does WordPress think I want to add videos, etc. to my page by default?

Environment

WordPress 4.4

4

What is it?

It is responsible for converting links into embed frames.

For example you can paste a Youtube video link into the editor content section and the Youtube embed will be generated for you when your page is viewed.

More information on WordPress Documentation

How to get rid of it?

I could finally get rid of that using this:

function my_deregister_scripts(){
  wp_deregister_script( 'wp-embed' );
}
add_action( 'wp_footer', 'my_deregister_scripts' );

Leave a Comment