Skip to content

Instantly share code, notes, and snippets.

@jentanbernardus
Created July 15, 2013 05:22
Show Gist options
  • Save jentanbernardus/5997655 to your computer and use it in GitHub Desktop.
Save jentanbernardus/5997655 to your computer and use it in GitHub Desktop.
Asynchronous Tweet Button
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a>
<!-- Put this JS at the bottom of the page -->
<script id="deferedjs" type="text/javascript">
var b = document.createElement('script');
b.type = 'text/javascript';
b.src = ('http://platform.twitter.com/widgets.js');
var a=document.getElementById("deferedjs");
a.parentNode.insertBefore(b,a);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment