Avoiding MetaData Lookup in gadget creation 
--------------------------------------------

                 Key: SHINDIG-1585
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1585
             Project: Shindig
          Issue Type: Improvement
          Components: Javascript 
    Affects Versions: 2.0.2
            Reporter: Hasan Ceylan
            Priority: Trivial


I have recently became deeply involved with Shindig.

While observing code, I noticed that in order to decide to use OAAIfrGadget or 
IfrGadget implementation, container makes a metadata request for each and every 
gadget on the page.

Considering the nature of the way opensocial is designed, which already 
produces a lot of HTTP requests, IMHO every request avoidance counts. I think 
this one can be avoided easily. A similar handling, the initial height of the 
iframe is also a load time parameter that affects the way the final html markup 
generated (inserting height attribute to iframe tag). 

Therefore, introducing a parameter in the gadget params - say 'pubsubEnabled' 
-, I can pass that parameter during the creating of the javascript chunk within 
the page and avoid the metadata lookup iff this parameter exists. In the 
absence of the parameter, the current implementation might commence.

If you appreciate the added value here, I would like to get down to coding of 
this implementation.

Regards,
Hasan Ceylan

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to