Hi On Sat, Nov 20, 2010 at 9:46 PM, Afkham Azeez <[email protected]> wrote:
> > > > > On Wed, Oct 20, 2010 at 10:04 AM, Pradeep Fernando <[email protected]>wrote: > >> Hi devs, >> >> When i was going through the service mgt component index.jsp, I found >> that there are some JS codes inside the dynamically generated page. My >> perception was that, we are handling JavaScript separately. When I was >> developing some other code, I refrained from doing this kind of stuff >> & got the relevant data by setting some html properties. If I have >> used something like this, my life would have been easier. >> >> Now is it a good practice to include JS inside our JSP pages? may be >> there is a specific reason for doing this. >> can anybody explain? >> > > If you have a huge reusable Javascript, it is better to place such scripts > withing a separate JS file. This helps in performance when such files can be > cached. > It also helps if you can minify large JS includes. Regards, /Nuwan > > >> >> -- >> >> Pradeep Fernando >> Software Engineer >> WSO2 Inc; http://wso2.com/ >> >> blog: http://pradeepfernando.blogspot.com/ >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > > > > -- > *Afkham Azeez* > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, > * > * > *Member; Apache Software Foundation; > **http://www.apache.org/*<http://www.apache.org/> > * > email: **[email protected]* <[email protected]>* cell: +94 77 3320919 > blog: **http://blog.afkham.org* <http://blog.afkham.org>* > twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * > linked-in: **http://lk.linkedin.com/in/afkhamazeez* > * > * > *Lean . Enterprise . Middleware* > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Thanks & Regards, Nuwan Bandara WSO2 Inc. | http://wso2.com lean . enterprise . middleware http://www.nuwanbando.com <http://www.nuwanbando.com/>
_______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
