Loading Gists Asynchronously
01 May 2014
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. gist:9951580 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 sometim...