On Wed, Sep 9, 2009 at 12:21 PM, Marnen
Laibow-Koser<[email protected]> wrote:
>
> James Englert wrote:
>> Interestingly, the browser apparently can load the page quicker if
>> javascript is at the bottom.
>>
>> http://developer.yahoo.com/performance/rules.html
>>
>
> That's a bizarre set of recommendations, especially given that Doug
> Crockford, Yahoo!'s own JS architect, recommends that JS not be mixed in
> with HTML at all.

Other than one specific case of a certain kind of landing page, I
don't see a recommendation there to mix javascript and html.

They recommend combining multiple script resources into one, minifying etc.

I take putting the javascript at the bottom as putting the script tags
referencing the separate script resource(s) at the bottom not inlining
javascript in the page.


-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to