How can I setup the timeout before a refresh on Twitter embedded timelines?
I need change the timeout time to update the twitter timelines on my site. Currently each second the twitter API do a ajax request to update the timelines. But on browser with slow engines of JS (in other words: IE), causes the browser becomes slow or sometimes causes the browser to stop working.
To fix this I want setup the timeout before a refresh on Twitter timelines
I didn't found any reference on API about how I can do this.
I'm using the follow JS code to import the timeline:
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p='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>
To show the timelines I'm using a HTML like code shown below:
<div class="box-twitter">
<p class="title-box"><span class="icon"></span>WHAT'S HAPPENING ON TWITTER </p>
<a class="twitter-timeline" href="https://twitter.com/search?q=from:dev include:retweets" data-widget-id="394816085830025216"><img src="preloader.gif" style="margin-left: 132px; margin-top: 20px;"/></a>
Someone know how can I solve this problem?
Thanks.
twitter apiloaded timelines refreshed every second. This causes performance issues onIE10andIE11? – Trevor Nov 7 '13 at 18:06updating or pollingof the twitter timelines that is causing the problem because setting adata-tweet-limitshould stop the polling for updatescompletely. – Trevor Nov 7 '13 at 18:49