49.5 F
Los Angeles
Tuesday, November 19, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
StaffIncremental BloggerFirst stab at web page thumbnails in Witty

First stab at web page thumbnails in Witty

I experimented a bit more with adding site preview thumbnails to the open-source Twitter client, Witty.

With a little bit more experimentation I got a first pass at the thumbnails showing for any web pages mentioned in a tweet.

wittysitethumbnails.png

There are several big problems with this though. First, it doesn’t appear like my eventing is right so the page doesn’t fully load before the thumbnail is created. As a consequence whole or parts of pages are left empty. That’s not necessarily a terrible thing, but it’s not right, either.

For instance, in Chris Pirillo’s tweet, the thumbnail should look more like:

correctchristhumbnail.png

rather than what’s shown in the previous Witty screen capture.

The thumbnail rendering can also add a noticeable time delay to tweet loadings. There’s probably no easy way around this. I’ve been wondering if I can trim down the posts by looking for RSS items instead and working off of their content and maybe pulling out a representative image or something. Hmmm.

Of course, there can be problems with JavaScript errors and the like too. So I’ll have to think through if this all of this is worthwhile. Maybe I’ll just have to live with it a few days to see if the benefits of the thumbnails outweigh the drawbacks.

Loren
Lorenhttp://www.lorenheiny.com
Loren Heiny (1961 - 2010) was a software developer and author of several computer language textbooks. He graduated from Arizona State University in computer science. His first love was robotics.

Latest news

Related news

2 COMMENTS

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback

[…] « First stab at web page thumbnails in Witty […]

LCH
16 years ago

Fixed the partially rendering problem with the thumbnails. It was a bug. I need to check for ReadyState to be Complete in the DocumentCompleted event. If not, don’t do anything yet. Simple fix. (Using WinForms WebBrowser for now.)