Twitter 嵌入式时间线回调 [英] Twitter Embedded Timeline Callback

查看:26
本文介绍了Twitter 嵌入式时间线回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在对 Twitter 的嵌入式时间线进行大量研究.我一直试图弄清楚是否有可能知道时间线何时完成加载并显示在页面上.此问题已被请求,但尚未实施.我走到了死胡同,希望有人能够帮助我找到解决方案.这是我目前发现的:

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 displays on the page. This issue has been requested, but has yet to be implemented. I have come to a dead end an am hoping someone is able to help me find the solution. Here is what I have found so far:

添加嵌入式时间轴的代码:

The code to add an Embedded Timeline:

<a class="twitter-timeline" href="https://twitter.com/twitterapi" data-widget-id="YOUR-    WIDGET-ID-HERE">Tweets by @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

运行脚本时会发生什么:

What happens when the script is run:

  1. 脚本将 标记替换为