This guide will once again be making use of the very handy Code Snippets plugin. If you haven’t done so yet, go ahead and install it. Shared Counts is not the only application which can make use of it. I’d generally consider it a must-have plugin and have it installed on all of my many WordPress websites.
add_filter( 'shared_counts_load_js', '__return_false' );
AMP compatibility, a positive side effect
Disabling Shared Counts CSS stylesheet
Another way of ensuring that visitors don’t have to download as many assets when trying to view your WordPress website, is by disabling the CSS stylesheet containing the many style options offered by Shared Counts.
Please note that you should only disable the Shared Counts CSS stylesheet if you have already created your own style. If you are using one of the styles offered by Shared Counts (Fancy, Slim, Classic etc.) do not enable this snippet as it will effectively break the plugin.
However, if you are using your style, I highly suggest you add and enable the following snippet, as the CSS stylesheet from Shared Counts will just waste bandwidth and slow down your site:
add_filter( 'shared_counts_load_css', '__return_false' );