title: How to check network resource loaded correctly from javascript?
body: <p>I have a page with many resources loaded.</p>
  
  <p>I would like to know if there is any way to know when a resource loaded correctly from javascript.</p>
  
  <p>I have:</p>
  
  <pre><code>index.html
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;script src="myResource.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>How can I know from javascript that myResource is correctly loaded without searching for some variable inside of myResource file.</p>
  
  <p>I would like to do something like:</p>
  
  <pre><code>window.network.isLoaded("myResource.js") ? 'it is loaded!' : 'it is not loaded';
  </code></pre>
  
  <p>is this possible?</p>