Re: scripts for layout in cake 1.2

2008-01-07 Thread Pablo Viojo
Just for the record. If your creating a website with javascript to add functionlity the approach of loading the javascript at the bottom is correct. But if your site striongly depends on javascript (the case of a webapp) the best is to load javascript as soon as you can. Regards, -- Pablo Viojo

Re: scripts for layout in cake 1.2

2008-01-07 Thread rtconner
Yep, NP. This is functionality that IMO should be in the cake core. But, what do I know? On Jan 7, 11:57 am, cmbg <[EMAIL PROTECTED]> wrote: > Thanks! This is very helpful! > > On Jan 7, 10:54 am, rtconner <[EMAIL PROTECTED]> wrote: > > > Perhaps this bakery article will help you. > > >http://b

Re: scripts for layout in cake 1.2

2008-01-07 Thread cmbg
Thanks! This is very helpful! On Jan 7, 10:54 am, rtconner <[EMAIL PROTECTED]> wrote: > Perhaps this bakery article will help you. > > http://bakery.cakephp.org/articles/view/anything_for_layout-making-ht... --~--~-~--~~~---~--~~ You received this message because

Re: scripts for layout in cake 1.2

2008-01-07 Thread Chris Hartjes
On Jan 7, 2008 11:06 AM, Guillaume <[EMAIL PROTECTED]> wrote: > Well, it may be to wait for all the DOM components to be loaded (it > could be a way to achieve that not depending on browsers' various > implementation on .onload. > Moreover, it seems a good practice to load javascript last : > http

Re: scripts for layout in cake 1.2

2008-01-07 Thread Guillaume
> Why do you want the javascript to be executed last? Well, it may be to wait for all the DOM components to be loaded (it could be a way to achieve that not depending on browsers' various implementation on .onload. Moreover, it seems a good practice to load javascript last : http://developer.yahoo

Re: scripts for layout in cake 1.2

2008-01-07 Thread cmbg
I'd like to have the page completely render, so it doesn't appear that the user is not arriving to the page they wanted. When I have a lot of javascript files loading in the head tag, it takes awhile before the user sees anything. As I was doing research on it, I found that putting the javascrip

Re: scripts for layout in cake 1.2

2008-01-07 Thread rtconner
Perhaps this bakery article will help you. http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Re: scripts for layout in cake 1.2

2008-01-07 Thread Chris Hartjes
On Jan 7, 2008 10:27 AM, cmbg <[EMAIL PROTECTED]> wrote: > I have a large javascript (maybe 30KB) files and one of things that I > want the browser to execute these files last so I put the > $scripts_for_layout at the bottom of my default layout. The problem > I've run into is I also have custom

scripts for layout in cake 1.2

2008-01-07 Thread cmbg
Just needed some thoughts on how to effectively use this... I have a large javascript (maybe 30KB) files and one of things that I want the browser to execute these files last so I put the $scripts_for_layout at the bottom of my default layout. The problem I've run into is I also have custom css