Twitter Embedded Timeline Callback

后端 未结 3 1870
悲&欢浪女
悲&欢浪女 2020-12-11 02:05

I\'ve been doing a lot of research into Twitter\'s Embedded Timelines. I\'ve been trying to figure out if it is possible to know when the timeline is finished loading and

3条回答
  •  一整个雨季
    2020-12-11 02:17

    When you copy and paste the code you get from Twitter, you have to replace this:

    
    

    With this:

    
    

    Of course, the doSomething function called above is your callback that runs when your embedded timeline loads and renders.

    Also, I guess this solution doesn't work in Internet Explorer since it doesn't support onLoad events for script elements. Yet there are solutions for that.

    Last, you can see my approach to this issue in the Twitter embedded timeline scraper I wrote.

提交回复
热议问题