Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Reinitialize addthis after loading ajax content

If you are using the AddThis share but­tons, you might have noticed that once you ini­tial­ize it on page load, it does not really work for con­tent that is loaded via ajax after the fact.

i.e. AddThis is unaware of fresly loaded con­tent. The fix for this is pretty sim­ple. Just ask AddThis to refresh as fol­lows, and it will auto­mat­i­cally regen­er­ate the cor­rect share links for newly loaded content

addthis.layers.refresh();

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.