I have a function that runs through a hook in wordpress, in which I install the JQuery
add_action('init', 'iniciarJQuery');
function iniciarJQuery() {
if( !is_admin()){
wp_deregister_script('jquery');
wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"), false, '');
wp_enqueue_script('jquery');
}
}
how to know if you can compare if the JQuery is installed or not, to avoid duplicates and conflicts
I already know how to use als local versions, but you can compare if jQuery is installed on the page before I install it