Skip to content

Instantly share code, notes, and snippets.

@amiri
Created July 19, 2011 23:30
Show Gist options
  • Save amiri/1094007 to your computer and use it in GitHub Desktop.
Save amiri/1094007 to your computer and use it in GitHub Desktop.
Async fail
<script type="text/javascript">/* <[CDATA[ */
(function() {
var e = document.createElement('script'); e.type="text/javascript"; e.async = true;
e.src = document.location.protocol + '//platform.twitter.com/widgets.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e);
Page.onReady('node-base', function(Y) {
twttr.events.bind('follow', function(event) {
console.log(event);
console.log("I got a follow!");
});
});
} ());
/* ]]> */</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment