<div style="width:300px;height:100px;background:yellow" id="example"></div> <script crossorigin="anonymous" src="js/script-defer.js"></script>