\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n\r\n```","suggestedAnswer":[{"@type":"Answer","text":"Technique 1"},{"@type":"Answer","text":"Technique 2"},{"@type":"Answer","text":"Technique 3"},{"@type":"Answer","text":"Technique 4"},{"@type":"Answer","text":"Technique 5"}],"acceptedAnswer":[{"@type":"Answer","text":"Technique 3"},{"@type":"Answer","text":"Technique 5"}]}}

Question from the HTML5/CSS3 test

How to add a border to an image in HTML5

Hard

Among the techniques presented below, which ones are said to be "non-blocking"?

<!-- Technique 1 -->
<script src="example.js" type="text/javascript"></script>
 
<!-- Technique 2 -->
<script src="example.js"></script>
 
<!-- Technique 3 -->
<script src="example.js" async></script>
 
<!-- Technique 4 -->
<script type="text/javascript">
    document.write('<script src="example.js" type="text/javascript"></scr'+'ipt>');
</script>
 
<!-- Technique 5 -->
<script type="text/javascript">
    var script = document.createElement('script');
    script.src = 'example.js';
    script.type = 'text/javascript';
    document.getElementsByTagName('script')[0].parentNode.appendChild(script);
</script>

Author: Jean-marie CléryStatus: PublishedQuestion passed 1750 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!