Twitter Widget Scripts for Blogger (Good Tip!)
If you added Twitter widget to your blogger, especially you, remember to move the following section of the code to the bottom of your template so that your blog doesn't have to wait for twitter to load first.
I notice that this blog loaded halfway up to the twitter section, then it stops for a few seconds, then it continues to load. It is caused by twitter widget loading slower than the blog itself. Sometimes, it might fail too. So, it's better to move the actual JavaScript that does the loading to the bottom of your blog, right before the </body> tag.
Got this tip from Twitter while procrastinating.
If you are too lazy to do your own code editing, just go to Twitter's Widget Page to get the code!
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/englee.json?callback=twitterCallback2&count=7"></script>
I notice that this blog loaded halfway up to the twitter section, then it stops for a few seconds, then it continues to load. It is caused by twitter widget loading slower than the blog itself. Sometimes, it might fail too. So, it's better to move the actual JavaScript that does the loading to the bottom of your blog, right before the </body> tag.
Got this tip from Twitter while procrastinating.
If you are too lazy to do your own code editing, just go to Twitter's Widget Page to get the code!
Labels: twitter
4 Comments:
At Thursday, July 23, 2009 7:39:00 AM, huibee said…
step by step..
means i copy those and place on..?
At Thursday, July 23, 2009 9:41:00 AM, EngLee said…
Go to your template, look for "</body>". Place it right before that tag.
At Sunday, July 26, 2009 7:00:00 AM, huibee said…
now ok?
change the englee to huibee right?
i dont know when you view your blog (esp this post) how it looks like
but those scripts actually run under your profile part until far far right hand side end.. ahaha. my problem?
At Monday, July 27, 2009 12:17:00 PM, EngLee said…
No problem with the script running to far right as long as you can read it. :)
Post a Comment
<< Home