jekyll/jekyll-gist

Add 'async' to Javascript tag

Closed this issue · 3 comments

I could be wrong, but I would think most people would want the gist's to load asynchronously and not stop page render.

<script src="http://gist.github.com/xxx.js" async></script>

Scripts that are loaded asynchronously cannot call document.write().

The gist embed script calls document.write()

The gist embed script cannot be called asynchronously.

Thanks, @pathawks!

Thanks for the explanation @pathawks, TIL