Book on Third-Party JavaScript from engineers at Disqus (YC 07)
thirdpartyjs.com
thirdpartyjs.com
- a script include that is very lightweight and only
- document.writes an iframe and
- asynchronously loads a helper script to deal with cross domain communication so that the frame can change height when the menu tabs change
See it in action here http://www.northernspyfoodco.com/menus/dinner
it eventually loads the iframe with this content:
http://www.realtimefarms.com/restaurant/northern-spy-food-co...
The benefit of using an iframe so far has been much easier reuse of code for the widget content. However, we've had a few folks request to use their own stylesheet which can't be supported (instead we offer a configuration of the embed snippet to style a few things like menu width, fonts family and colors).
In any case, if we learn even a single helpful trick about embedding rich content from this book, it will have been money well spent!
But I'm surprised to find that there is no mention of Ajax Crawling and SEO (see http://code.google.com/web/ajaxcrawling/), which is a crucial issue, a deal-breaker for many customers. I realize this is a MEAP book, but even the Table of Contents does not hint that search engine indexing will be treated in any way.
This is a book whose value is very clear - if you're working in the field of embeddable widgets (as I am), you know how "hack-ish" and tricky a field it is. The Disqus people have managed to make a great product despite this - any tricks I can learn from them that will make my life easier will be worth tons.
I agree with jwr - SEO is a big topic which I know nothing about, except feeling vaguely uneasy since I know we're losing a lot of SEO opportunities with our widget. Definitely a topic that should be covered in the book.
This might be a niche topic, but how about talking about advertising inside widgets in the book? Advertising is a method that many widgets use to monetize, but I'm unclear how well the standard Google adwords, etc. solutions work with embeddable widgets.