title: Javascript use explicit self/window objects to improve performance
body: <p>I read on <a href="http://msdn.microsoft.com/en-us/library/ms534627(v=VS.85).aspx" rel="nofollow noreferrer">MSDN</a> that to improve scripting efficiency, you can use <code>self</code> to make implicit window references explicit.</p>
  
  <ol>
  <li><p>Do you know if this is true? Does this basically mean that for instance calling <code>self.location</code> is somewhay more efficient than calling simply <code>location</code> with no <code>window</code> opject before?</p></li>
  <li><p>Since the MSDN text is referred to the <code>self</code> and not <code>window</code>,  does this performance increase happens only using <code>self</code>?
  According to <a href="https://stackoverflow.com/questions/3216428/self-property-in-javascript/3216464#3216464">here</a> <code>window</code> and <code>self</code> and <code>window.self</code> are the same thing, so it shouldn't matter what we use, i'm asking only to make sure.</p></li>
  <li><p>Moreover following what stated in MSDN calling <code>window.self</code> should be somehow more performant than calling <code>self</code> because this last one is a property of <code>window</code> so by calling <code>window.self</code> we use an explicit ref.</p></li>
  </ol>
  
  <p>Thanks</p>