Personaly form my experience putting JS at the top or bottom shaves only a 
second or so on page rendering/loading....

If you application relies heavily on javascript for its enhanced 
functionality and needs the observers in place to function then i would put 
it at the top.

for example....

Load the javascript in the head as normal, then add the event observer for 
dom/window load/ready to set the observers up...

Yahoo's idea is only one out of many ways of doing things and what may work 
for them with their infrastructure and frameworks may not work or benefit 
everyone.



Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "skaiuoquer" <skaiuoq...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Tuesday, September 15, 2009 10:42 PM
Subject: [Proto-Scripty] YSlow's rule "JavaScript at the bottom" w/Prototype


>
> Guys, I wonder if you can help me with this;
>
> I just had a twenty minute-long discussion with a senior co-worker on
> the YSlow rule "put JavaScript at the bottom"--for more information on
> it, please check out [ 
> http://developer.yahoo.com/performance/rules.html#js_bottom
> ].
>
> Now, I want to adhere to this rule as well as eliminate "onevent"
> attributes on HTML tags on a given product.
>
> My colleague thinks this is going to result in "bugs" when perplexed
> users are confronted with a "fully" rendered page and thus attempt to
> click on links that have no JS behaviour added yet--since I want all
> of the behaviour to be added using the 'observe' method.
>
> Is this so? Can you guys please shed some light on this subject on an
> application basing its JS on Prototype?
>
> Thanks in advance and warm regards,
>
> - Javier
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to