Twitter enables embedded timelines

Real-time interactive timelines can be added to any website

Twitter enables embedded timelines
Embedded Twitter timelines, now available via one line of code

Twitter has launched a new tool that enables you to embed interactive timelines on any website. According to the company, the tool provides the means to place any public timeline on any page. "With one line of HTML you can deliver any account's tweets, favourites, a list, search query or hashtag directly to your website," explained Twitter's Sylvain Carle.

The timelines work much like the Twitter website, providing the means for visitors to reply, retweet, follow and tweet directly, but without leaving the page. Tweets can be expanded and flagged as favourites, and Carle claimed the new tools were built specifically for the web and that they "load fast, scale with your traffic as your audience grows, update in real-time, and work great in modern, legacy, and mobile browsers".

"I like that it adds functionality over latest tweets," freelance web designer Shane Hudson told .net. But he added that "it is unlikely to fit in with many website designs". (Presumably this is Twitter's intention, given its recent blitz on third parties and attempts to create a 'consistent user experience'.) Digital consultant Michael Oglesby had other concerns, wondering if it could lead to more spam on the service. "My gut tells me we'll see more spammers and bots hijacking Twitter timelines," he said, "because it's easier to submit a reply tweet via the widget. It won't be long before someone figures out a way to sniff out websites that have this new widget and automatically submit tweets to your timeline."

2 comments

Comment: 1

In looking at the generated code, the script call to the JS file from the Twitter site doesn't use a defer or async attribute. I've been burned before by embedded tweets killing my page load when Twitter is fail-whaling. I just asked if they can add it (https://dev.twitter.com/discussions/10633?page=2#comment-22091) But I am curious if anyone can suggest a way to do it on my end without hacking their code. Unless that's the best way to do it.

Comment: 2

Found article saying that external script calls from generated script load asynchronously. So my previous question is moot.
July issue on sale now!

The Week in Web Design

Sign up to our 'Week in Web Design' newsletter!

Hosting Directory
.net digital edition
Treat yourself to our geeky merchandise!
site stat collection