title: How to get a list of loaded scripts, including the ones dynamically loaded
body: <p>I'm trying to match a certain script with the currently loaded scripts on the page:</p>
  
  <pre><code>if($('script[src="' + sn + '"]').length == 0)
    $('head').append('&lt;scr' + 'ipt src="' + sn +'"&gt;&lt;/scr' + 'ipt&gt;');  
  </code></pre>
  
  <p>This works but only for scripts that were loaded normally.</p>
  
  <p>For scripts that were injected using javascript, like the one in my condition, it doesn't work :(</p>
  
  <p>Apparently scripts that are loaded this way are somehow invisible in the DOM, even though they run.</p>