7 ms·
I'm not having a dig at the site. And I didn't know that about the product token. Could you not do something with the user agent or do you get that already?
by piers 16y ago
I'm not having a dig at the site. And I didn't know that about the product token.
Could you not do something with the user agent or do you get that already?
- jdd 16y agoBenchmark.js (http://benchmarkjs.com http://benchmarkjs.com), which jsPerf uses, does checks the UA string as well as feature tests for various environments. You can check the code out at https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1467-1646 https://github.com/mathiasbynens/benchmark.js/blob/master/be.... Here is a MSDN post that examines some of the platform tokens http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx