While implementing Linkedin share-button on my Rails 4 application with Turbolinks enabled, I encounter problem how to reload Linkedin share-button correctly because my code always showing “duplicate in.js loaded, any parameters will be ignored”.
After a little googling, I found that I just need to flush old Linkedin instance by
delete IN. Here is my solution to implement Linkedin share-button with Turbolinks in Rails 4.0.0.
First, Remove the following script from
And then load the following script inside the
- Register to Digital Ocean cloud with this link, you will get $50 credit
- Premium PSD an website / Wordpress
- Easy and cheap CDN in the world