after add snippet code below into callback’s input box, the first click of #malinky-ajax-pagination-button
button can’t work, then the second click and later, the function works well and can add the share button to every post, so anything wrong?
jQuery('#malinky-ajax-pagination-button').click(function(){
document.addEventListener('malinkyLoadPostsComplete', function(e) {
jQuery('.share-component,.social-share').share();
});
});