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 for certain views, now the css
also prints outside of the head tag, which then causes the styles to
be applied last.

Is there another function or method that will put css in the header
and javascript at the bottom?  I could just do a iterate over the
scripts_for_layout array and regex if one is css or the other is js,
but that'd be redundant wouldn't it?

--~--~---------~--~----~------------~-------~--~----~
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