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
Post a Comment