I guess I'm understanding what it does and how it works. The point was, why shindig needs to obtain libs as part of url parameter despite it's right there in config.php.
Cache doesn't seem to matter because combination of javascripts (libs) should be cached anyway the first time shindig renders it, even if SNS have multiple gadgets in one page. if it's just the way it works, that's fine. I just wanna know if there's any particular reason. 2008/6/26 Chris Chabot <[EMAIL PROTECTED]>: > Actually what shindig does is it looks at the gadget xml and distills a list > of required features (and their dependencies) > > loop through all required_and_optional_features: > if the lib is included in the libs=...:..:.. > append it to the $external_libs_string > else > append the javascript code to $inlined_javascript > > echo <script src="/gadgets/js/$external_libs.js"> > echo $inline_libs > > So it's not a 'if their not specified on the url things break' kind of thing > at all, why would we make something broken by design ? :-) > > It's just a way to specify which libs should be included through an external > reference, and which should be inlined into the document. > > When in doubt, you can always look at the source, in this case it's in > src/gadgets/http/GadgetRenderingServlet.php line 154. > > -- Chris > > On Jun 26, 2008, at 11:50 AM, Kevin Brown wrote: > >>> I meant, what if SNS does not provide "libs" param in gadget url inside >>> iframe. >>> Shindig still should be able to detect required "libs" since they are >>> in config.php and can ommit unnecessary features gadget XML requires >>> when rendering. >> >> >> If you don't provide it, shindig will automatically figure out what to use >> -- you'll just get fewer cache hits and overall worse performance. > >

