[{"data":1,"prerenderedAt":241},["ShallowReactive",2],{"project-5769642":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":40,"post_text":42,"what":43,"said":64,"maker_in_thread":153,"shape":164,"grid":167,"attempts":204,"same_week":205,"maker_shows":31,"maker_hidden":233,"reader_version":234,"card":235},"5769642","fasterDOM.js","Fast DOM manipulation with jQuery-like syntax","title","Show HN: Fast DOM manipulation with jQuery-like syntax","https:\u002F\u002Fgithub.com\u002Fbndr\u002FfasterDOM.js","github.com","bndr",1369531577,2013,31,16,767,1739,45,"shown","languages","javascript dom library","library",[24,25,26,27],"dom manipulation","jquery alternative","javascript library","fast selectors","mixed",0.087,{"positive":31,"neutral":31,"mixed":32,"critical":33},3,1,2,9,{"execution":36,"performance":38,"idea":39},{"positive":32,"critical":37},0,{"positive":32,"critical":32},{"positive":37,"critical":32},[31,37,31,37,32,37,31,37,41,37,41,37,32,41,37,31],5,null,{"problem":44,"audience":42,"pricing":42,"motivation":51,"time_to_build":42,"stack":55,"openness":62,"stage":63,"team_size":63},{"value":45,"source":46,"evidence":47},"jQuery is slow and feature-heavy when only simple, fast DOM work is needed","maker",[48],{"id":49,"by":11,"text":50},"5770557","The idea behind this project, was to make it as small as possible and as fast as possible. Yes it does indeed lose many features that jQuery (or Sizzle) provide, but if you need…",{"value":52,"source":46,"evidence":53},"Make a smaller and faster alternative to jQuery for simple needs",[54],{"id":49,"by":11,"text":50},[56],{"value":57,"source":58,"evidence":59},"JavaScript","inferred",[60],{"id":61},"post","open_source","unknown",{"praise":65,"objections":86,"requests":105,"questions":128,"alternatives":140},[66,78],{"value":67,"source":68,"evidence":69},"Fast and interesting performance gains","commenter",[70,74],{"id":71,"by":72,"text":73},"5769874","electrichead","Nitpick: line 57 has a typo in 'undefined'. I will have a deeper look at the code tomorrow. A 30% increase is definitely interesting.",{"id":75,"by":76,"text":77},"5770249","MattBearman","This is very cool, great work! Although I think you should make it clear in the read me that it only supports 2 basic jQuery-like selectors (by id '#id' and by class '.class'),…",{"value":79,"source":68,"evidence":80},"Useful small alternative to jQuery",[81,85],{"id":82,"by":83,"text":84},"5770656","bazillion","Would definitely like to use this -- could you please provide a license file?",{"id":75,"by":76,"text":77},[87,91,98],{"value":88,"source":68,"evidence":89},"Only supports id and class selectors",[90],{"id":75,"by":76,"text":77},{"value":92,"source":68,"evidence":93},"Sizzle already handles this and more and is battle tested",[94],{"id":95,"by":96,"text":97},"5770542","geuis","I looked at this the other day. While I think the effort is always good, a library like Sizzle already handles stuff like this and a lot, lot more. Its field tested and battle…",{"value":99,"source":68,"evidence":100},"Browser support unclear compared to jQuery",[101],{"id":102,"by":103,"text":104},"5769688","hayksaakian","That's only half the puzzle though, does this solution work in most browsers? At least as many as jQuery 2.X? Up to as many as jQuery 1.9.Y?",[106,110,117,121],{"value":107,"source":68,"evidence":108},"Document supported browsers",[109],{"id":102,"by":103,"text":104},{"value":111,"source":68,"evidence":112},"Add remove method",[113],{"id":114,"by":115,"text":116},"5770800","oceanstone","It looks cool! Adding a `remove` method would make it even better.",{"value":118,"source":68,"evidence":119},"Add license file",[120],{"id":82,"by":83,"text":84},{"value":122,"source":68,"evidence":123},"Compare against zepto.js",[124],{"id":125,"by":126,"text":127},"5770688","riffraff","how's the comparison to e.g. zepto.js core ?",[129,136],{"value":130,"source":68,"evidence":131},"What is the use case?",[132],{"id":133,"by":134,"text":135},"5770034","mcmire","Cool. What's the use case?",{"value":137,"source":68,"evidence":138},"How does it compare to querySelectorAll speed?",[139],{"id":75,"by":76,"text":77},[141,145,149],{"value":142,"source":68,"evidence":143},"Sizzle",[144],{"id":95,"by":96,"text":97},{"value":146,"source":68,"evidence":147},"jQuery",[148],{"id":49,"by":11,"text":50},{"value":150,"source":68,"evidence":151},"Zepto.js",[152],{"id":125,"by":126,"text":127},{"comments":154,"answered":155,"key":156},7,4,[157,160,163],{"id":158,"text":159},"5770341","The reason why I left only the ID and Class selectors is because they are the fastest. Here are some test cases: http:\u002F\u002Fjsperf.com\u002Fgetelementsbyclassname-vs-queryselectorall\u002F35",{"id":161,"text":162},"5769728","Hi! Thanks for your comment! I will check and update the README with supported browsers.",{"id":49,"text":50},{"commenters":165,"max_depth":155,"maker_replies":154,"first_comment_mins":15,"lifespan_hours":166},10,11,[168,170,172,174,176,178,180,181,183,185,188,190,193,197,200,202],[75,37,31,169,76,37],"project\u002Fmixed\u002Fexecution",[158,37,37,171,11,32],"maker\u002Fneutral\u002Fperformance",[102,32,31,173,103,37],"project\u002Fneutral\u002Fperformance",[161,32,37,175,11,32],"maker\u002Fneutral\u002Fdocs",[95,33,32,177,96,37],"project\u002Fcritical\u002Fidea",[49,33,37,179,11,32],"maker\u002Fpositive\u002Fidea",[125,33,31,173,126,37],[182,33,37,171,11,32],"5770959",[71,31,41,184,72,37],"project\u002Fpositive\u002Fperformance",[186,31,37,187,11,32],"5770558","maker\u002Fneutral\u002Fexecution",[82,155,41,189,83,37],"project\u002Fpositive\u002Fnone",[191,155,37,192,11,32],"5770952","maker\u002Fneutral\u002Fnone",[194,41,32,195,196,37],"5770584","project\u002Fcritical\u002Fperformance","itsbits",[114,198,41,199,115,37],6,"project\u002Fpositive\u002Fexecution",[201,198,37,187,11,32],"5770948",[133,154,31,203,134,37],"project\u002Fneutral\u002Fidea",[],[206,210,215,220,224,229],{"id":207,"name":208,"points":209,"category":20},"5779473","Fleex",287,{"id":211,"name":212,"points":213,"category":214},"5771325","groundcontrol",105,"infrastructure",{"id":216,"name":217,"points":218,"category":219},"5781313","Let's Be Amigos",104,"consumer_social",{"id":221,"name":222,"points":223,"category":219},"5772932","kennberg.com",103,{"id":225,"name":226,"points":227,"category":228},"5779988","Subtask",99,"productivity",{"id":230,"name":231,"points":232,"category":228},"5784674","Distraction Free Reader\u002FWriter",85,false,"v2",{"id":236,"name":5,"line":6,"ai":233,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":237,"top":18,"kw":238,"maker":11,"domain":10,"tier":19,"attempts":37,"strip":239,"url":9,"mix":240,"praise":67,"objection":88,"sub":21},5769642,0.09,[24,25,26,27],"3030103050501503",[31,31,32,33],1793990894787]