Oh it’s nightmare! Linkedin share button is not showing up when I load the page content in Ajax. It’s not new to hear!. We always face this kind of issue on every social media buttons when we do fancy Ajax things with twitter, facebook, etc. But facebook and twitter is some what smart to handle. Linkedin throwing exception like below when we load “in.js” in Ajax page content.
duplicate in.js loaded, any parameters will be ignored
Photo credit: Marvin Lee (Creative Commons)
When I create the dynamic Linkedin button above trick doesn’t give me hand to solve. But when I do some more research on it. Just found that we can flush the old Linkedin instance by “delete IN;”. So below one works.
<script> delete IN; $.getScript("http://platform.linkedin.com/in.js") </script>
Hope it helps, cheers!