Remove WordPress wp-embed JS Script of Your Page Template

Here is a quick tip to remove the piece of code added by WordPress 4.4 in the header of your pages about wp-embed.

wp-embed.js is a script added by wordpress
It’s super easy to embed videos, images, tweets, audio, and other content into your WordPress site. This feature was added in WordPress 2.9″

That’s the code WordPress adds in your page:

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

Leave a Reply

Your email address will not be published. Required fields are marked *