Async, embeddable HN share button
github.com
github.com
<script>
(function() {
var hn = document.createElement('script'); hn.type = 'text/javascript';
hn.async = true; hn.src = 'http://hnbutton.appspot.com/static/hn.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(hn, s);
})();
</script>
Why not just put in the generated script tag? Moreover, why does it matter where the tag is placed if it's loaded with async as opposed to defer?As far as async vs. defer, here's a good summary: http://www.sitepoint.com/non-blocking-async-defer/
[1] http://tom.preston-werner.com/2008/11/17/blogging-like-a-hac...
[2] http://www.allthingsdistributed.com/2011/08/Jekyll-amazon-s3...
I don't think the "social sharing" idea behind all those buttons is smart at all. It allows for an eventual single winner only, and crap in between (and crap after the winner is "elected" since it wont be cool anymore, everyone will have to have a new button side by side)
Why is this .js not on Github?