Forked from sadjow/load_addthis_after_ajax_calls.js
Created
February 3, 2017 13:04
-
-
Save carloscastillop/9cc381971f183a9c6057c19b5c2ada4c to your computer and use it in GitHub Desktop.
Dynamic load addthis tag after ajax calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ajaxStop(function() { | |
if (window.addthis) { | |
window.addthis = null; | |
window._adr = null; | |
window._atc = null; | |
window._atd = null; | |
window._ate = null; | |
window._atr = null; | |
window._atw = null; | |
} | |
return $.getScript("http://s7.addthis.com/js/300/addthis_widget.js#pubid=sdive"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!