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.

Reply via email to