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.
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…
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…
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…
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.
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…
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…
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…