Start Render Time
|
07-14-2010, 10:20 PM
Post: #52
|
|||
|
|||
RE: Start Render Time
(07-14-2010 08:59 PM)green-watch.org Wrote: So it sounds like having little in the head as possible is a great way to reduce the start render time. So this would mean JavaScript would be better suited at the end of the body as opposed to the head section (even if it is asynchronous calls). Why do I always see it being encouraged to have JavaScript in the head? Yep - it's even a YSlow rule: http://developer.yahoo.com/performance/r...#js_bottom :-) You do have to be careful about dependencies for inline code though. It's "easier" to have it in the head because you can guarantee that the code is loaded before any inline javascript on the page is executed. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)