Find a Javascript ID when trying to deregister?

I am trying to remove a plugin from loading on a specific page.

This is the idea I have to do it:

//Remove plugin Javascript
function de_script() {
wp_dequeue_script( ‘name-javascript-1’ );
wp_deregister_script( ‘name-javascript-2’ );
}

add_action( ‘wp_print_scripts’, ‘de_script’, 100 );

Problem is that when I view the source of the page there is no ID like there is for CSS?

Any ideas how to do this when the Javascript does not have an ID?

Thanks

Read more here:: Find a Javascript ID when trying to deregister?

Leave a Reply

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