Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created October 27, 2011 12:26
Show Gist options
  • Save dannycroft/1319420 to your computer and use it in GitHub Desktop.
Save dannycroft/1319420 to your computer and use it in GitHub Desktop.
Asynchronous Twitter Tweet Button
<script type="text/javascript">
(function() {
var t = document.createElement("script");
t.type = "text/javascript";
t.src = "//platform.twitter.com/widgets.js";
t.async = true;
document.getElementsByTagName('head')[0].appendChild(t);
})();
</script>
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment