3 ms·
An FYI regarding "In my experience, it's often faster than Chrome"... I found during development that Safari will start retrieving suggested URLs even before y
by JasonSage 10y ago
An FYI regarding "In my experience, it's often faster than Chrome"...
I found during development that Safari will start retrieving suggested URLs even before you finish typing them, so if I'm going to 'news.ycombinator.com', it makes the request when I hit 'n', and by the time I hit a few more characters and enter a few hundred milliseconds later, the request is already complete.
- Klathmon 10y agoChrome 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/ 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-prefetch-and-tcp-preconnect/ https://www.igvita.com/2012/06/04/chrome-networking-dns-pref...
- JasonSage 10y agoI 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.
- TazeTSchnitzel 10y agoBecause of this, I've managed to hang Safari once before just by typing a URL, not actually visiting it. It's nonetheless a neat feature.
- stablemap 10y agoAlso, there's a preference under "Search" that toggles this.
- jayflux 10y agoI actually think Chrome was doing this long before Safari was