by flohofwoe · 4y ago · 0 comments
The "up-and-coming" (back in 2013) high-resolution timer performance.now() exists on all browsers for a long time by now, but is clamped to milliseconds on some browsers because of the Spectre/Meltdown mitigations. The web audio timer is also affected by this precision reduction, but I don't know what's the current situation across browsers (I was actually hoping that the article would talk about this).
Anti-fingerprinting settings can also heavily reduce timer precision.
In short: timing on the web platform is (currently) an incredible mess.
This secure context makes it harder to support various random ad networks, but if you're deploying your app via the web and don't need to monetize it by ads, it's a way forward.
(there is a workaround however by injecting the required response headers on the client side, but who knows how long that's going to work: http://stefnotch.github.io/web/COOP%20and%20COEP%20Service%2...)
...
...
...
...
timers
see: https://developer.chrome.com/blog/timer-throttling-in-chrome...