[{"data":1,"prerenderedAt":379},["ShallowReactive",2],{"project-23203658":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":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":46,"post_text":48,"what":49,"said":71,"maker_in_thread":184,"shape":194,"grid":199,"attempts":340,"same_week":341,"maker_shows":185,"maker_hidden":371,"reader_version":372,"card":373},"23203658","instant","Make your site’s pages faster than instant in one minute","title","Show HN: Make your site’s pages faster than instant in one minute","https:\u002F\u002Finstant.page\u002Fv5","instant.page","dieulot",1589639479,2020,65,55,913,3028,31,"notable","languages","javascript library","library",[24,25,26,27,28],"page preload","link prefetch","javascript","faster navigation","mousedown","roasted",-0.399,{"positive":32,"neutral":33,"mixed":34,"critical":35},2,14,1,19,36,{"design":38,"performance":40,"idea":42,"execution":44,"privacy":45},{"positive":34,"critical":39},13,{"positive":34,"critical":41},3,{"positive":43,"critical":43},0,{"positive":43,"critical":34},{"positive":43,"critical":32},[41,34,34,34,34,47,41,34,34,43,43,34,41,34,34,34,41,43,43,43,43,34,43,34,43,41,34,41,43,34,34,41,41,43,34,43,41,41,43,41],5,null,{"problem":50,"audience":48,"pricing":48,"motivation":48,"time_to_build":48,"stack":56,"openness":68,"stage":69,"team_size":70},{"value":51,"source":52,"evidence":53},"Pages feel slow to load after a click.","inferred",[54],{"id":55},"post",[57],{"value":58,"source":52,"evidence":59},"JavaScript",[60,64],{"id":61,"by":62,"text":63},"23204030","LukeShu","With Firefox 76.0.1, when I click a link, then click \"back\", the page thinks I'm still holding down on the thing I clicked, and have it in a drag&drop state. Then I have to click…",{"id":65,"by":66,"text":67},"23204741","chrismorgan","I contemplated using the instant.page techniques a while back, and took version 1.2.2 and stripped it to its bones, removing configurability that I’m never going to use, and…","open_source","launched","unknown",{"praise":72,"objections":88,"requests":137,"questions":143,"alternatives":158},[73,81],{"value":74,"source":75,"evidence":76},"Makes page loads feel very fast once used to it","commenter",[77],{"id":78,"by":79,"text":80},"23204403","arkitaip","I've experimented with instant.page and other similar scripts and it's almost shocking how fast page loading becomes when you are used to a (slight) page loading delay. There are…",{"value":82,"source":83,"evidence":84},"Tiny size, about 1.1kB","maker",[85],{"id":86,"by":11,"text":87},"23204197","instant.page is 1.1kB and encourages efficient server-side rendering.",[89,104,115,126,133],{"value":90,"source":75,"evidence":91},"Triggering navigation on mousedown breaks drag and drop and click cancellation",[92,96,100],{"id":93,"by":94,"text":95},"23203851","kurtextrem","This is a clever trick (using mousedown to trigger a click), but breaks drag & dropping links, drag & dropping links to new tabs. and there is also a thing I tend to do: If I…",{"id":97,"by":98,"text":99},"23204388","reaperducer","Buttons are typically triggered on mouse-up events, not mouse-down, and there's probably good reasons for that. So you can drag the link somewhere else. Like to the desktop or a…",{"id":101,"by":102,"text":103},"23204438","hlandau","Yep. This convention also enables the cancellation of a click, which can be useful if you realise your error mid-click. Another piece of software egregious for violating this UI…",{"value":105,"source":75,"evidence":106},"Wastes bandwidth from prefetching links",[107,111],{"id":108,"by":109,"text":110},"23204053","toolz","I don't believe so, no. Imagine how much potential wasted bandwidth that would be for someone on cell data",{"id":112,"by":113,"text":114},"23204086","yinyang_in","This would be odd behaviour of any website for me personally, in some areas data is still precious and limited. Also I'm wired to think that only clicking website would open…",{"value":116,"source":75,"evidence":117},"Breaks standard GUI click behaviour",[118,122],{"id":119,"by":120,"text":121},"23204120","noisem4ker",">it triggers the page load when the user starts pressing their mouse This breaks the standard GUI interaction model. Buttons are typically triggered on mouse-up events, not…",{"id":123,"by":124,"text":125},"23204372","wrs","Great, now sites can implement clicking in some confusing, subtly broken way? File this with sites that implement their own broken inertial scrolling, their own broken…",{"value":127,"source":75,"evidence":128},"Does not work in Safari by default",[129],{"id":130,"by":131,"text":132},"23210838","mcintyre1994","It doesn’t work in Safari. https:\u002F\u002Finstant.page\u002Ftech > Safari 13.0 has support for \u003Clink rel=\"prefetch\"> but it’s disabled by default. Hopefully it will be enabled in September…",{"value":134,"source":75,"evidence":135},"Back navigation leaves page in drag state in Firefox 76",[136],{"id":61,"by":62,"text":63},[138],{"value":139,"source":75,"evidence":140},"Avoid triggering on mousedown",[141,142],{"id":119,"by":120,"text":121},{"id":65,"by":66,"text":67},[144,151],{"value":145,"source":75,"evidence":146},"Does it work with Turbolinks?",[147],{"id":148,"by":149,"text":150},"23212854","pouta","Does this play well with Turbolinks?",{"value":152,"source":75,"evidence":153},"Are prefetched results used if navigation starts before completion?",[154],{"id":155,"by":156,"text":157},"23218861","gitgud","If the hover request is waiting on a 5mb page (god forbid) and it doesn't complete before the navigation starts, then will the browser use any of the pre-fetched data? Or will it…",[159,170,177],{"value":160,"source":75,"evidence":161},"Browser link prefetch and prerender",[162,166],{"id":163,"by":164,"text":165},"23203971","tryptophan","Don't browsers do this themselves? Preload links on a page you visit? I think firefox calls it pre-fetching.",{"id":167,"by":168,"text":169},"23204149","grx","In case of prefetching, that's a header \u003Clink> functionality: https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FHTTP\u002FLink_prefetching_FAQ. Most implementations use it for static…",{"value":171,"source":75,"evidence":172},"Fasterfox",[173],{"id":174,"by":175,"text":176},"23204166","Arkanosis","Fasterfox (the now disappeared addon, not the currently available theme of the same name) did that. And yes, it wasted bandwidth (for site owners as well).",{"value":178,"source":75,"evidence":179},"InstantClick",[180],{"id":181,"by":182,"text":183},"23204455","seabass",">InstantClick provides the smoothest experience possible, while still not requiring as much work as a framework (who give lesser results) It's not the job of a framework to make…",{"comments":185,"answered":34,"key":186},4,[187,190,191],{"id":188,"text":189},"23203879","Didn’t think of drag and dropping links to new tabs! Yeah, that’s a bit of a sad regression. The two other use cases you mention aren’t common at all though.",{"id":86,"text":87},{"id":192,"text":193},"23204175","It’s a bit out of date. Adidas UAE long removed it. Spotify seems to use it periodically. More recent additions to the fleet include: https:\u002F\u002Fwww.bmwusa.com\u002F…",{"commenters":195,"max_depth":196,"maker_replies":185,"first_comment_mins":197,"lifespan_hours":198},42,6,23,39,[200,204,206,208,211,214,217,220,224,225,229,232,235,239,242,245,248,251,254,257,258,261,262,264,267,269,271,274,278,279,280,282,283,285,286,288,289,290,292,294,295,297,299,302,305,310,312,316,320,322,324,326,330,334,338],[201,43,41,202,203,43],"23204379","project\u002Fneutral\u002Fnone","hbcondo714",[93,34,34,205,94,43],"project\u002Fcritical\u002Fdesign",[188,34,43,207,11,34],"maker\u002Fneutral\u002Fnone",[209,34,34,205,210,43],"23204043","soneca",[212,34,34,205,213,43],"23204062","himlion",[215,34,34,205,216,43],"23204113","thefreeman",[218,34,41,219,131,43],"23204286","project\u002Fneutral\u002Fdesign",[221,34,47,222,223,43],"23205572","project\u002Fpositive\u002Fdesign","jtbayly",[130,34,41,202,131,43],[226,34,43,227,228,43],"23204291","commenter\u002Fneutral\u002Fdesign","prepromorphism",[230,34,34,205,231,43],"23204472","katsura",[233,34,34,205,234,43],"23204191","Aeolun",[236,34,43,237,238,43],"23204249","commenter\u002Fneutral\u002Fnone","silvat",[240,34,43,237,241,43],"23204267","detaro",[243,34,43,227,244,43],"23203939","twillin",[246,34,34,205,247,43],"23204307","cirno",[249,34,41,219,250,43],"23204325","baud147258",[252,34,43,227,253,43],"23203957","jlbnjmn",[255,34,34,205,256,43],"23204288","anpago",[119,32,34,205,120,43],[259,32,34,260,168,43],"23204187","project\u002Fcritical\u002Fperformance",[86,32,43,207,11,34],[263,32,41,207,168,43],"23204230",[265,32,43,227,266,43],"23204300","CraftThatBlock",[268,32,43,227,131,43],"23204317",[270,32,43,227,182,43],"23204334",[272,32,43,227,273,43],"23204350","tjeannin",[275,32,43,276,277,43],"23204356","other\u002Fneutral\u002Fnone","boublepop",[97,32,34,205,98,43],[101,32,34,205,102,43],[281,32,43,276,66,43],"23204780",[65,41,34,205,66,43],[284,185,41,202,216,43],"23204131",[192,185,43,207,11,34],[163,47,41,287,164,43],"project\u002Fneutral\u002Fidea",[108,47,34,260,109,43],[174,47,34,260,175,43],[291,47,41,202,241,43],"23204374",[293,47,43,276,120,43],"23204147",[167,47,41,202,168,43],[61,196,34,296,62,43],"project\u002Fcritical\u002Fexecution",[123,298,34,205,124,43],7,[78,300,47,301,79,43],8,"project\u002Fpositive\u002Fperformance",[112,303,34,304,113,43],9,"project\u002Fcritical\u002Fprivacy",[306,307,41,308,309,43],"23204274",10,"project\u002Fmixed\u002Fdesign","mkhalil",[181,311,43,237,182,43],11,[313,314,41,287,315,43],"23204776",12,"lhorie",[317,39,34,318,319,43],"23204290","maker\u002Fcritical\u002Fprivacy","derivativethrow",[321,39,43,207,11,34],"23204304",[323,39,41,207,241,43],"23204309",[155,33,41,325,156,43],"project\u002Fneutral\u002Fperformance",[327,328,41,287,329,43],"23204945",15,"sibeliuss",[331,332,43,276,333,43],"23213236",16,"cyberowl",[335,336,43,276,337,43],"23207177",17,"sturza",[148,339,41,202,149,43],18,[],[342,347,351,356,361,366],{"id":343,"name":344,"points":345,"category":346},"23209142","toro",551,"finance_crypto",{"id":348,"name":349,"points":350,"category":346},"23190921","senator-filings",350,{"id":352,"name":353,"points":354,"category":355},"23205579","XP.css",297,"dev_tools",{"id":357,"name":358,"points":359,"category":360},"23180298","Virtual Reality DOS",206,"games",{"id":362,"name":363,"points":364,"category":365},"23223358","aitextgen",174,"ai",{"id":367,"name":368,"points":369,"category":370},"23215360","Career Fair",161,"productivity",false,"v2",{"id":374,"name":5,"line":6,"ai":371,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":375,"top":18,"kw":376,"maker":11,"domain":10,"tier":19,"attempts":43,"strip":377,"url":9,"mix":378,"praise":74,"objection":90,"sub":21},23203658,-0.4,[24,25,26,27,28],"3111153110013111300001010313011330103303",[32,33,34,35],1793991009540]