performance.now() doesn't work in snap server #2476
-
One of the dependencies in the snap I develop ( I'm wondering if there is walkaround to resolve this besides patching the package i use. Adding
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @porco-rosso-j Performance.now is not available in Snaps. Also please note that they both serve different purposes. performance.now() is relative to page load and more precise in orders of magnitude. Use cases include benchmarking and other cases where a high-resolution time is required such as media (gaming, audio, video, etc.) It should be noted that performance.now() is only available in newer browsers (including IE10+). |
Beta Was this translation helpful? Give feedback.
Hi @porco-rosso-j Performance.now is not available in Snaps. Also please note that they both serve different purposes.
performance.now() is relative to page load and more precise in orders of magnitude. Use cases include benchmarking and other cases where a high-resolution time is required such as media (gaming, audio, video, etc.)
It should be noted that performance.now() is only available in newer browsers (including IE10+).
See -> https://stackoverflow.com/questions/30795525/performance-now-vs-date-now