Re: Best Practice - Javascript at bottom for faster page loads
Jonathan Bowlas <j.bowlas-hclig2XLE9Zaa/[email protected]> Fri, 10 Jun 2011 12:15:49 +0100
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Ok, thanks Sylvain. Good to know. J On 10 June 2011 10:40, Sylvain Viollon <[email protected]> wrote: > On Fri, 10 Jun 2011 10:01:37 +0100 > Jonathan Bowlas <j.bowlas-hclig2XLE9Zaa/[email protected]> wrote: > >> Hello again Devs, >> > > =A0Hello, > > >> Best practice states that Javascript files should be loaded at the >> bottom of the page for faster page loads >> >> http://developer.yahoo.com/performance/rules.html#js_bottom >> > > =A0I am aware of that. The best is to include the non required one at > =A0the bottom. > >> How would I do this with silvaconf.resource() calls when inheriting >> IPorto? >> >> I realise I can hard code the JS files at the bottom, but I would like >> to take advantage of the concatenation and minifying available when >> using silvaconf.resource(). >> > > > =A0Unfortunately, silva.resourceinclude doesn't support that (for the > =A0moment). > > =A0In Silva 3.0, we use a different system, silva.fanstatic, that do > =A0support this. The syntax for the Silva developer stays the same. > > =A0Regards, > > =A0Sylvain. > > > -- > Sylvain Viollon -- Infrae > t +31 10 243 7051 -- http://infrae.com > Hoevestraat 10 3033GC Rotterdam -- The Netherlands > -- = Jonathan Bowlas Web Support Officer Media Services University College London Email: j.bowlas-hclig2XLE9Zaa/[email protected]