Oh btw - quick run down on how Orkut does things. We figure that the
first set of requests a gadget makes when loaded is going to be the
same for a particular view 99% of the time. Subsequent requests may
depend on user data and interaction but the first one is pretty much
always the same.

We take advantage of this fact and log the data fetched for all first
requests in our servers. This data is what is prefetched when a gadget
is loaded. The container page is the one that prefetches this from the
server and shoves the data into iframe urls of the same domain as the
gadgets. The gadgets then attempt to read this data from the urls only
for the first set of requests. If the data they want is there, then
they don't go to the server and just use the preloaded stuff. If it is
not there then things proceed as usual.

- Cassie


On Tue, Apr 8, 2008 at 3:27 PM, Cassie <[EMAIL PROTECTED]> wrote:
> Paul - Orkut has a nice solution for this and I was going to try to
>  non-googlify it and pull it into Shindig. I don't think anybody has
>  started on that though so go for it.
>
>  I'm a little bit swamped at the moment but I can help work on it later
>  if you want to talk designs and what not.
>
>  - Cassie
>
>
>
>
>  On Mon, Apr 7, 2008 at 10:27 PM, Kevin Brown <[EMAIL PROTECTED]> wrote:
>  > Ultimately I think the renderer should prefetch this stuff from the app 
> data
>  >  server, and we should use short-lived security tokens passed to the 
> renderer
>  >  for it.
>  >
>  >  Orkut has been experimenting with some preloading stuff on their sandbox
>  >  (you can see it in action by visiting the sandbox). It's difficult to do
>  >  right, easy to screw up, and easy to introduce security vulnerabilities.
>  >
>  >  Having the rendering server talk to the app data server to get this data 
> for
>  >  gadgets that are likely to want it seems natural. If the opensocial js was
>  >  more modular, we could probably develop pretty good heuristics for which
>  >  data needs to be preloaded. We lose iframe caching, but I think that's a
>  >  minor concession.
>  >
>  >
>  >
>  >  On Mon, Apr 7, 2008 at 1:20 PM, Paul Lindner <[EMAIL PROTECTED]> wrote:
>  >
>  >  > I¹m going to implement prefetching of OWNER/VIEWER from the parent page
>  >  > for
>  >  > shindig¹s jsoncontainer.js.  If anyone here has already started work on
>  >  > this
>  >  > feature let me know..
>  >  >
>  >  > Paul
>  >  > Hi5
>  >  >
>  >  >
>  >
>  >
>  >  --
>  >  ~Kevin
>  >
>

Reply via email to