the difference between doing a native js call and an equivalent jq call is
minimal. Because the small substrings and function calls don't compete
(timewise) with the code to do the dom searches or dom manipulations!

AND JQ is faster to code, and gives so many benefits! I can't imagine
looping thru the dom anymore (and before jq I thought that it was cool!)



On 12/18/06, Anaurag Gupta <[EMAIL PROTECTED]> wrote:

When writing plugins, in general, when should I use jquery functions over
standard javascript? (Sorry that question expose my ignorance.)

I wondering when I should use a this.each in favor of a standard loop
statement, or when to use getElementById instead of the dollar function?

My worry is that referencing these functions has some overhead costs, and
so wondering best practices.

Thanks much.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to