Twitter Post embedding is not working with custom content scroller


#1

Hi All,

I am embedding twitter post on my page which have custom scroller. Post is loading properly if I m commenting the cusotom scroller js but as I made custom scroller code enable is loading the iframe but after few second body code which inside the iframe is getting remove. Any solution please it urgent.

http://lallantopdev.jumpcatch.com/news/twitter-post/#paki-talk


#2

This is happening because the iframe element is moved in the DOM after it renders. iframe elements, which we use to render widgets, have a restriction wherein if they are moved in the DOM after rendering, the entire body of the iframe is obliterated.

The usual workaround is to render the tweet after you have finished moving the elements in your DOM. Once you are done with that and ready to render a tweet, you can use the factory function to do it. Another way is to use the autoload parameter to control when to render.


#3