JSFiddle - React, Tailwind, and code Playground
HTML
<strong>0</strong> scripts with source attribute
<script src="http://test.com/script.js"></script>
<script>
(function() {
var i = 0;
}());
</script>
JavaScript
document.querySelectorAll = null;
$('strong').text($('script[src]').length);
$('script[src]').each(function() {
console.log( jQuery.find.attr(this, "src") );
});