I've been reading an IEBlog article about JScript speed optimization.

http://blogs.msdn.com/ie/archive/2006/08/28/728654.aspx

I'm in the habit of treating variables as if JScript supported block-
level scoping instead of just function-level scoping. Is this a good
practice in general, or is it excessive and something that should be
avoided? Also, is there any benefit to caching methods of the document
object, such as "getElementById" or "createTextNode"?

Thanks!

-Mike

Reply via email to