Thanks, Kevin >> 1. Why does "libs" needed to be specified in gadget url? >> gadget renderer is shindig itself if type="html", while "focedLibs" is >> part of shindig configuration (not part of config SNS side). >> Which means that gadget renderer (shindig) should be able to include >> required libs without specifying them in gadget url. > > You'd want to specify libs if you were rendering multiple gadgets. > Otherwise, if the gadgets required different features, you'd wind up > fetching the same code multiple times.
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. Sorry if I'm misunderstanding you (in terms of English) . > Yes, though $libs should be filtered unless you want to be subject to an XSS > attack :). Oops :P

