3rd party's JavaScript asynchronous loading

Standard pattern (inline script)

Inline script in the middle of context always blocks building DOM and rendering page. The script (it has some document.write() inside of it) in this demo returns a response after a delay of 5 seconds, so displaying a side widget will be blocked.

Sample

Codes

<div id="gist">
    <script src="https://gist.github.com/..."></script>
</div>