6 ms·
It's not about how fast it loads, it about whether it actually requests the file from the server or not. See my comment above, if you have "x.js" in your cache
by XCSme 6y ago
It's not about how fast it loads, it about whether it actually requests the file from the server or not.
See my comment above, if you have "x.js" in your cache and it's your first time on this site, it means that you previously visited another site that contains "x.js".
- im3w1l 6y agoIn cache - high speed, fetch from server - low speed. Isn't that how you detect it?
- XCSme 6y agoThe problem is not that you can detect it on the client,but you can also see it on the server. On the server you see that user requested the HTML for the page and other resources, but never requested X.js. You could keep a count of requests, per user per file.