Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Extreme JavaScript Performance.
For example, what is the performance penalty of:
var arr = [1, 2, 3]; for(var i=0; i < arr.length; i++){ //stuff } // versus $.each( arr, function(i, val){ // stuff } );
$("a").each( function(){ $(this).click( $(this).find("img").hide(); ); }); // versus $("a").each( function(){ var targetImage = $(this).find("img"); $(this).click( $(targetImage).hide(); ); });
There are no comments on this comment yet.
For example, what is the performance penalty of:
Or @ caching: