我试图通过简单地使用@anywhere API Twitter来在我的网站上放置一个推文框。虽然这工作得很好,是简单的设置,它具有下列问题吧:Twitter @Anywhere API的替代品?
- 接管3秒加载(https://stackoverflow.com/questions/19907/what-do-most-users-consider-acceptable-load-times-on-a-website)
- 使14个请求
- 调用jQuery的两次
是否有任何其他替代方案使用@anywhere
?
编辑:这是我的代码..
<div id="twitter_widget">
<script src="http://platform.twitter.com/anywhere.js?id=**MYAPPID**&v=1"></script>
<script type="text/javascript">
twttr.anywhere(function (T) {
T("#twitter_widget").tweetBox({
label: "<span style='display:block !important;margin-bottom:5px !important;font-family:Helvetica Neue !important; color: #CCC !important; font-size: 18px !important; font-weight: 500 !important;'>Tweet</span>",
height: 100,
width: 300,
defaultContent: ""
});
});
</script>
<button class="check-twitter" onclick="window.open('http://www.twitter.com','_blank');">Go to Twitter</button>
</div>
什么是您的主机环境? – rds
从Hostgator托管的VPS。 – Charlie