Moving Embedded Tweet using jQuery


Hello, I am trying to use jQuery’s .detach() and .append() methods to move a widget with an embedded tweet in it. The embedded tweet is fine before the move, but after the move it no long shows the embedded tweet, just a blank space that is the outline of the iframe. I am using if (typeof(twttr) != ‘undefined’){ twttr.widgets.load();} but am still not seeing the tweet.


You cannot move an iframe once it has rendered, browsers will kill its state. Calling twttr.widgets.load() again will not help because the particular widget was technically already rendered once.

I recommend you to try out our javascript API for creating a tweet at a given node: create-tweet

I created this live code example for create tweet. Hope that helps.