Skip to content

Instantly share code, notes, and snippets.

@shinypb
Created June 1, 2012 21:24
Show Gist options
  • Save shinypb/2855218 to your computer and use it in GitHub Desktop.
Save shinypb/2855218 to your computer and use it in GitHub Desktop.
Async Deck loading code
<div id="SidebarTheDeck">
<script type="text/javascript">
(function(id) {
var theDeck = document.createElement('script'); theDeck.type = 'text/javascript'; theDeck.async = true;
theDeck.src = 'http://connect.decknetwork.net/deck' + id + '_js.php?' + (new Date().getTime());
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(theDeck, s);
})("DF");
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment