Addthis not working with Ajax

后端 未结 9 2024
广开言路
广开言路 2021-02-07 14:38

I am loading all articles with Ajax but Addthis functionality is not correct

 $thisChild.load( permLink + \' #thePostStuff\', function() {

And

9条回答
  •  萌比男神i
    2021-02-07 15:20

    I had the same problem. Fixed it with the following. Hope that fixes it for you too.

    Original:

        var script = 'http://s7.addthis.com/js/300/addthis_widget.js?domready=1#pubid=MY-PUB-ID';
    if (window.addthis){
        window.addthis = null;
    }
    $.getScript( script );
    

    New:

    
    

提交回复
热议问题