Loading Gists Asynchronously

added by Chirs Poulter
5/2/2014 8:02:30 AM


Gist is a service offered by GitHub that provides a simple way to share code snippets and examples. One of the features offered is the ability to embed your code snippets, or Gists, on a web page. This is achieved by adding a script tag to the web page html that displays and styles the code snippet e.g. The main flaw with this implementation is that the Gist content is not loaded asynchronously. So if the GitHub web site is taking a long time to respond your html content will not render until a response is returned. Writing a development blog I find that my blog posts can sometimes contain...