News for hackers. Stuff that matters.
Re:Safari Technology Preview supports 100% of the ES2015/16/... by Klathmon on Thursday December 08, 2016 @02:55PM (#13133660)
Chrome has been doing that for a long time and more.

If you hunt around you'll find that chrome is even doing things like speculative DNS queries, opening TCP channels to endpoints that are often opened on pages that you might be trying to load, in some very limited cases even pre-downloading and executing a page "hidden" only to swap it in like you changed tabs once you "hit enter". [0][1]

If you tend to be pretty "habitual" when using chrome, fire up something like wireshark before opening it and watch what it does when you first start it. A year or 2 ago I did this and noticed it would instantly fire off DNS queries for gmail and start a TCP channel before i've even typed anything! (as at the time the first thing i'd do when opening chrome was check my email).

It's really cool shit, and I'm sure chrome and safari aren't the only ones doing it. I mean the gains can be substantial (especially for mobile devices! getting the DNS query and TCP handshake out of the way on a shitty 3g network before the user stops typing means it will load a few hundred ms sooner) and for many of the smaller changes there are very few downsides.

[0] This goes over the bit ones that many browsers have: https://css-tricks.com/prefetching-preloading-prebrowsing/

[1] Here is a somewhat-technical article about chrome from 2012 that goes over the DNS and TCP-preconnect stuff: https://www.igvita.com/2012/06/04/chrome-networking-dns-pref...

Re:Safari Technology Preview supports 100% of the ES2015/16/... by JasonSage on Thursday December 08, 2016 @03:56PM (#13134215)
I don't know why, but when using a local development server only Safari manages to generate requests while typing the URL for me—Chrome does not. It's possible I've put more work into my Chrome privacy settings.
Re:Safari Technology Preview supports 100% of the ES2015/16/... by Klathmon on Thursday December 08, 2016 @04:30PM (#13134480)
Chrome disables just about all of this when you have the developer tools open, so that might be what you are running into.
Re:Safari Technology Preview supports 100% of the ES2015/16/... by JasonSage on Thursday December 08, 2016 @04:45PM (#13134585)
Thanks for the info, I'll keep an eye out for this sometime in the future!