Skip to content

Instantly share code, notes, and snippets.

@jessepollak
Created July 5, 2015 07:20
Show Gist options
  • Save jessepollak/a7e09812c57507cbb3e7 to your computer and use it in GitHub Desktop.
Save jessepollak/a7e09812c57507cbb3e7 to your computer and use it in GitHub Desktop.
Load clef.js asynchronously
(function(d, s, id) {
var js, ejs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//clef.io/v3.1/clef.js";
ejs.parentNode.insertBefore(js, ejs);
}(document, 'script', 'clef-js'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment