News for hackers. Stuff that matters.
Re:The Single Piece of JavaScript on HN by vmorgulis on Thursday March 17, 2016 @07:31PM (#11308540)
With closure compiler:

function hide(a){if(a=document.getElementById(a))a.style.visibility="hidden"}function vote(a){var b=a.id.split(/_/)[1];hide("up_"+b);hide("down_"+b);(new Image).src=a.href;return!1};

v and item are merged.

http://closure-compiler.appspot.com/home#code%3D%252F%252F%2...

Original Size: 212 bytes gzipped (318 bytes uncompressed)

Compiled Size: 164 bytes gzipped (182 bytes uncompressed)

There are no comments on this comment yet.