Closed vladimir-barsuchenko closed 6 years ago
I will look into it.
there's a onTweetsLoad()
function. It can be passed in options thats fired when the tweets have loaded. You can try that.
How hard would a onEmbedLoad()? Just for all embeds not just twitter?
Eventually I will want to change this library into plugin based and doing that will be tough. Anyways I don't think anything delays except twitter.
in v5 twitter plugin is separate and it provides an onLoad()
method that gets called when tweets are rendered.
render() promise is fired when html is parsed. But can we get an actual callback when html is fully rendered?
For example, twitter example. Fully rendering appears after 0.5s render() promise is fired.
http://codepen.io/anon/pen/JEGjzj
Thanks!