Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
futmacl
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
futmacl
15y ago
FWIW, I added several improvements, and according to the built-in survey, it works for about 95% of all visitors. If you had bad results initially, clear you cache and give it a second try.
2.
▲
by
futmacl
15y ago
If you allow the load to complete, yes. But the idea here is to very quickly decide that you're not getting a cached copy, and abort the request (by changing src=) before the browser has a chance to read anything back and figure out what to
3.
▲
by
futmacl
15y ago
Chiefly because if you have a fast machine, good connection, and a nearby CDN node, ~10 ms may be enough to establish a connection, make a request,and see the response. Plus, if you do setInterval(..., 1) and then measure new Date().getTime
4.
▲
by
futmacl
15y ago
Author here. It's not exactly that; the <img> approach is commonly suggested, but it has some serious limitations (explained in the source code). Instead, I time <iframe>s, which allows SOP violations to be trapped the momen