Putting your js at the bottom of the page is essentially the same as
putting it in jQuery(function() {}), or .ready. The Yslow plugin
doesn't take into account that you are using jQuery and are
implementing the ready event. I have run a couple of tests for the
software company I work for and have found no noticeable impact either
way. I have however, compiled and minified the scripts into one file
and it increased performance ten-fold. Since it has a .js extension,
it can be cached by the browser.

Trey



On Feb 9, 6:13 am, bobspryn <[email protected]> wrote:
> I recently switched our app's javascript to include at the bottom of
> the page as we're taking many steps to increase front-end performance,
> primarily based on Steve Souders suggestions (of YUI fame).
>
> I've decided that at the moment we don't have enough javascript to
> worry about this step. By putting it all at the bottom, you see a
> flash of our web 1.0 features, which we enhance with javascript (so
> that they still work if you flip javascript off.) This means 5-star
> ratings show up as radio buttons for a split second, among a bunch of
> other similar features, before the javascript loads and does what its
> supposed to.
>
> So I'm going to move the javascript back to the top, since most of the
> features are in ready() blocks anyway.
>
> Best,
> Robert
>
> On Feb 7, 2:25 pm, Kevin Dalman <[email protected]> wrote:
>
> > You can accomplish *some* of the same goals of putting JS at the
> > bottom by using 'defer', like:
>
> > <script src="script.js" type="text/javascript" defer="defer"></script>
>
> > This does not defer script 'loading' in all browsers, but does defer
> > 'execution', which can noticeably improve performance in some cases.
>
> > Here is a good summary of how defer works...
>
> >http://www.websiteoptimization.com/speed/tweak/defer/
>
> > /Kevin
>
> > On Feb 7, 7:55 am, weepy <[email protected]> wrote:
>
> > > The Yslow plugin by Yahoo suggests putting Javascript at the bottom of
> > > the page.
>
> > > Do the jQuery devs recommend the same ?
>
> > > weepy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to