Hi,

Thanks for this.

The head, body and footer have been seperated in our portal.  Hence if the
script is called in the head, it would be called in all pages (even where
the script is not required) which would make it very heavy.  We want a way
where it is called in the body, but where we can ensure that we are  W3C
validated.

Any suggestions are welcome and thanks in advance.

Regards,
Lakshmi

On 4/19/08, b logica <[EMAIL PROTECTED]> wrote:
>
>
> If you're using $javascript->link('some_script') change it to
> $javascript->link('some_script', false) so that the script tag is
> written to the head rather than inline within the body.
>
> Of course, whether or not this breaks your scripts depends on how they
> were written. If they do break, you should re-write them properly
> handle DOM load rather than depending upon where they fall in the
> document.
>
> As for page load/execution time, this may be related more to poor code
> rather than where the script lies in the doc, though the code be poor
> because it was written to run in the middle of the doc. If you know
> what I mean ...
>
> On Fri, Apr 18, 2008 at 11:22 PM, Lakshmi <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > We are trying to achieve W3C valid pages and have minimal errors on the
> > pages on our portal.  We are using javascript and cakephp.  What happens
> is
> > due to the script tags being embedded we get many W3C validation errors.
> > The page gets slower due to this and throughput is low.  Could someone
> help
> > in giving tips how we could avoid such errors and get our pages W3C
> > validated.
> >
> > Are there any particular rules to be followed to achieve this?
> >
> > Thanks in advance for the help.
> >
> > Regards,
> > Lakshmi
> >  >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to