Hello, I have a rails site in which I added a hashtag widget in the landing page. If I click to a different page and then come back to the landing page, the widget won’t load; if I reload the entire page then the widget will load. The website can be found here.
I saw a similar question here, though I wasn’t sure how to apply the fix. Is that something I need to insert within the widget I already have, or immediately below it in the same script. I am a newb without much experience with javascript or jQuery, so this help will help a lot!
The widget I’m using is:
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/hashtag/srag5" data-widget-id="695833566630932481">#srag5 Tweets</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>