title: Why is 'use strict' usually after an IIFE (rather than at the top of a script)?
body: <p>I've anecdotally noticed that <code>use strict</code> appears to be more common like this:</p>
  
  <pre><code>(function() {
    'use strict';
    ...
  </code></pre>
  
  <p>Than this:</p>
  
  <pre><code>'use strict';
  (function() {
    ...
  </code></pre>
  
  <p>The <a href="https://github.com/tastejs/todomvc/tree/master/examples/vanillajs" rel="nofollow">vanilla JS implementation of TodoMVC</a> does this, for example.</p>
  
  <p>Is there a reason for this?</p>
  
  <p>Edit: I'm aware of the whole-file versus function-block distinction. TodoMVC is a good example to demonstrate why this placement is strange to me, because it doesn't rely on any external libraries, so the whole "play nice with non-strict third parties" doesn't apply here.</p>