I've just begun using javascript and jquery and I'm very impressed
with what can be acheived using it.  Thank you for an excellent
product!  :)

This may seem like a basic question but I've just started working with
javascript and am learning as I go.  Why is it that

$(document).ready(function() {
    //stuff goes here
});

is called directly within the document/page itself and not linked in
as a file instead?  I see this on a consistent basis when I'm looking
at plugin examples.  The written plugins themselves are linked in as a
.js file but the actual javascript calls (
$("#example").whatever(function()) ) are within the page itself and
can be seen by viewing the page source.

Why is that?  Is there a performance boost?

Thanks,

Shane

-- 
---------
Bender: "Amy, you like cute things so I baked you a pony."
---------

http://www.reefs.org - Where reefkeeping begins on the internet.
http://www.advancedaquarist.com - High quality, free monthly publication for
the reef keeping hobbyist.
http://www.aquaristcourses.org - Distance learning courses for the
marine aquarist.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to