Thanks for the clarification Jesse. I think we should take this discussion over to the Shindig dev list since that seems like the appropriate spot for it. If we decide to make the method public than we can make the patch to the container spec.
On Aug 24, 8:44 am, "Ciancetta, Jesse E." <[email protected]> wrote: > Hi Ryan, > > I think we're talking about two different things. I think you're talking > about the osapi.container.Container.prototype.preloadGadget(s) functions, and > I'm talking about the osapi.container.Container.prototype.preloadFromConfig_ > function which (currently) is private and only called once from the > osapi.container.Container constructor. > > The functions that you're talking about always result in an XHR call back to > the server to fetch the metadata (unless it's already in the metadata cache), > and also don't do anything to facilitate using pre-generated tokens. The > function I'm talking about allows the caller to push pre-generated metadata > and tokens directly into the cache (thus avoiding any XHR's when the gadget > sites are navigated), however its currently private and only called once from > the osapi.container.Container constructor. My problem though is that when I > make my call to the osapi.container.Container constructor I don't have all of > the metadata/tokens gathered up yet to pass in a single batch, which is why I > need to be able to call the preloadFromConfig_ function incrementally. > > Please let me know though if I've misunderstood what you meant. > > BTW -- I've got a JIRA ticket/patch and review for this issue at the > following locations: > > https://issues.apache.org/jira/browse/SHINDIG-1579 > > https://reviews.apache.org/r/1563/ > > I'd be happy to contribute a spec patch too if this gets accepted and > committed to trunk. > > Thanks! > > --Jesse > > > > > > > > >-----Original Message----- > >From: [email protected] [mailto:opensocial- > >[email protected]] On Behalf Of rbaxter85 > >Sent: Tuesday, August 23, 2011 8:45 PM > >To: OpenSocial and Gadgets Specification Discussion > >Subject: [osgs] Re: Incremental preloading of gadget metadata and security > >tokens > > >Jesse, why not just make the call to navigateGadget in the callback to > >preload? > > >On Aug 23, 7:18 am, "Mark W." <[email protected]> wrote: > >> +1 > >> Andrew, is this something we need to add to the incubating section "2.0 > >> next" spec? If so, I can open that up so we can start working on it. > > >-- > >You received this message because you are subscribed to the Google Groups > >"OpenSocial and Gadgets Specification Discussion" group. > >To post to this group, send email to opensocial-and-gadgets- > >[email protected]. > >To unsubscribe from this group, send email to opensocial-and-gadgets- > >[email protected]. > >For more options, visit this group at > >http://groups.google.com/group/opensocial-and-gadgets-spec?hl=en.
