我試圖通過簡單地使用@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