HomeTips & Tricks Remove Loading ‘wp-embed.min.js’ on your WP site

Remove Loading ‘wp-embed.min.js’ on your WP site

Hey, do you want to remove “wp-embed.min.js” from your WordPress public view site? So then here is a quick tip to how to remove the piece of code added by WordPress in the header or footer of your pages about wp-embed.min.

wp-embed.js.min is a script added by WordPress default, It’s good and easy to embed videos, images, tweets, audio, and other content into your WordPress website. This feature was added in WordPress 2.9 or latest version.

So if you don’t need this and want to clean your themes lets follow the below step for adding and removing “wp-embed.min.js” from your WordPress Website.

Go to your current themes root directory folder and paste the following code direct into your “functions.php” file and save it.

function wpassist_dequeue_scripts(){
wp_deregister_script(‘wp-embed’);
}
add_action( ‘wp_enqueue_scripts’, ‘wpassist_dequeue_scripts’ );

if you have not access on your root directory folder and want to remove this by your WordPress Dashboard so then follow the bellow step.

Step 1: Login to your WordPress Dashboard.

Step 2: Go to the “Appearance” from left sidebar menu.

Step: 3 click on “Theme Editor” from Appearance menu.

Step 4: Now find the “functions.php” named file from right sidebar corner.

Step 5: finally copy and paste the above given code into functions.php file after other code end section.

Remove Loading wp-embed.min.js on your WP site
Remove Loading ‘wp-embed.min.js’ on your WP site

Now finally update the Theme Editor and now done.

You can learn more at: https://developer.wordpress.org/reference/

In the end

I hope you have found this article helpful. Let us me your opinion or questions if any through the comment form in below or use this form to ask your question.

You May Also Like

About the Author: Kedar Adhikari

I am WordPress Themes developer and designer and also any type of website design with minimum cost. for more information you can contact me on email gojinepal@gmail.com

Leave a Reply

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

Copyright © 2020 My WP Helper. All rights reserved.