I read on MSDN that to improve scripting efficiency, you can use self
to make implicit window references explicit.
Do you know if this is true? Does this basically mean that for instance calling
self.location
is somewhay more efficient than calling simplylocation
with nowindow
opject before?Since the MSDN text is referred to the
self
and notwindow
, does this performance increase happens only usingself
? According to herewindow
andself
andwindow.self
are the same thing, so it shouldn't matter what we use, i'm asking only to make sure.Moreover following what stated in MSDN calling
window.self
should be somehow more performant than callingself
because this last one is a property ofwindow
so by callingwindow.self
we use an explicit ref.
Thanks