How to remove some external js files from source?

You can use wp_dequeue_script to achieve this assuming they are using wp_enqueue_script to add the scripts in the first place.

Learn more about enquene and dequeue:
https://developer.wordpress.org/reference/functions/wp_enqueue_script/
https://codex.wordpress.org/Function_Reference/wp_dequeue_script

function dequeue_script() {
   wp_dequeue_script( 'http://buhehe.de/wp-content/themes/heatt/js/small-menu.js?ver=4.9.1' );
   wp_dequeue_script( 'http://buhehe.de/wp-includes/js/wp-embed.min.js?ver=4.9.1' );
}
add_action( 'wp_print_scripts', 'dequeue_script', 100 );

Leave a Comment

tech