Hi,
To check if share icons are there whenever someone loads your web page in their browser, would be a performance overhead as the icons might be there because of shortcode or/and widget.
However, you can add following code in the functions.php file of active theme or use this code as a plugin, to prevent the Javascript and CSS files from loading at certain web pages. This code prevents the loading of plugin’s CSS and Javascript at the post with WordPress Post ID 1.
/**
* Initialization
*/
function heateor_sss_custom_init() {
add_action( 'wp_enqueue_scripts', 'heateor_dequeue_js_css' );
}
add_action( 'init', 'heateor_sss_custom_init' );
/**
* Dequeue the CSS and Javascript files of Sassy Social Share
*/
function heateor_dequeue_js_css() {
global $post;
// put your condition here
if ( is_object( $post ) && $post->ID == 1 ) {
wp_dequeue_style( 'heateor_sss_frontend_css' );
wp_dequeue_script( 'heateor_sss_sharing_js' );
}
}