conflict with wordpress jetpack sharing icons
-
When you use the option ‘Combine & Move all JavaScripts to the bottom’ and you have jetpack 3.0.1 using its ‘share this’ feature the packed javascript from this plugin is inserted after some javascript from jetpack that uses jquery, resulting in a js error. The code that jetpack outpus before jquery is calls like this:
<script type=”text/javascript”>
jQuery(document).on( ‘ready post-load’, function(){
jQuery( ‘a.share-linkedin’ ).on( ‘click’, function() {
window.open( jQuery(this).attr( ‘href’ ), ‘wpcomlinkedin’, ‘menubar=1,resizable=1,width=580,height=450’ );
return false;
});
});
</script>The code for jetpack that calls footer js to be inserted is located in a function called sharing_add_footer().
Any chance this could be fixed on this plugin?
https://www.ads-software.com/plugins/js-css-script-optimizer/
- The topic ‘conflict with wordpress jetpack sharing icons’ is closed to new replies.