title: Javascript resize event faulty
body: <p>I don't know why this doesn't work:</p>
  
  <pre><code>window.addEventListener('load', setSize(), false);
  window.addEventListener('resize', setSize(), false);
  
  function setSize(){
      width = window.innerWidth;
      console.log(width);
  }
  </code></pre>
  
  <p>It logs the width right after load, but it doesn't do that when I resize.</p>