How do I listen to new tweets being automatically pulled by my embedded widget?


#1

I need to be able to detect when new tweets are pulled in my embedded widget, in order to style them properly. CSS only won’t work, as the widget is rendered within an iframe, so I’m currently running an interval in javascript that resets all the tweets in my widget to have the desired css properties, regardless if they are old or new. This is a really ugly way of solving it, and wastes a lot of processing power, slowing down the site. Is there a way of saying ‘whenever a new tweet/multiple tweets are pulled in, do this’? I’m basically looking for something similar to ttwttr.events.bind(‘loaded’, f() ) or twttr.events.bind(‘rendered’, f() ), but for individual tweets WITHIN a widget.


#2

#3