javascript - storing document in a variable -


I wonder if I store the document in a variable whether there will be a speed increase, so if I have < / P>

  var doc = document; MyElement = doc.getElementById ('Some Thing');   

I know in this example that it will not be very different, but my thinking is that my variable will act as a "pointer" in the form of a document and hence the M script No need to try and see the document back.

Document is a global object in context of another variable and then document instead of document How fast can it be? This is a vertical question :)

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -