title: Is it more efficient to use addEventListener, or onclick for performance?
body: <p>I'm using JavaScript only, without jQuery.</p>
  
  <pre><code>&lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  &lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  &lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  &lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  &lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  &lt;div onclick="doFunction()"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>document.addEventListener('click', function () {
      //code here
  });
  </code></pre>