I think something like:
<script src="..." id="bla></script>
<noscript for="bla">Script not loaded</noscript>
Would be more flexible, and would be consistent with how labels, datalists, etc. are linked to their element.