On Wed, Nov 17, 2010 at 1:09 PM, nu...@wso2.com <nu...@wso2.com> wrote:

> Hi Devs,
>
> Since there are at least one person in each team, writing a gadget,
> specific to their product dashboard, I believe knowing "gadget authoring
> best practices" are quite important. There are few key points that we should
> understand when writing gadgets.
>
>    1. Gadgets are not like jsps or any other server side script, Its
>    purely on JavaScript and they are browser dependent.
>    2. Limit the number of network calls you do within a gadget
>    (gadgets.io.makeRequest). Ideally limit it to one request to fetch the
>    dataset for presentation. (Do not perform orchestration within a gadget, 
> IMO
>    gadget is not the right place to do that)
>
> Using a FE component is the right way to do this right?

>
>    1.
>    2. Keep your complex processing away from the gadget as much as
>    possible.
>    3. If you are importing js libraries make sure to minify them.
>
> Also please do read [1] guide on gadget best practices published by Google.
> Importantly read the section on *"Use API Calls"*.
>
> Since our dashboards are getting populated more and more with gadgets, I
> believe we will have to practice these steps as much as possible, to
> minimize rendering latency.
>
> [1] http://code.google.com/support/bin/answer.py?hl=en&answer=81678
>
> --
> Thanks & Regards,
>
> Nuwan Bandara
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>
> http://www.nuwanbando.com
>
> <http://www.nuwanbando.com/>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu Mathew

Software Engineer,
WSO2 Inc.,
http://wso2.com
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to