Google Code Blog: Instant Previews: Under the hood
Google has some elegant architecture behind “instant preview” results that could be used in many places. The main ingredients: JS Compilation JSONP base64 encodings of image data Google Code Blog: Instant Previews: Under the hood.