How can I test the user's computer's processing power using Javascript?

前端 未结 3 1753
眼角桃花
眼角桃花 2021-01-02 12:32

I made a pretty CPU intensive webpage with lots of CSS3 and Javascript. I want to use Javascript to test if the user\'s computer is capable of handling the scripts. I think

3条回答
  •  孤街浪徒
    2021-01-02 13:20

    Barring setting localstorage to run a script (essentially hacking a user's machine --please don't do this), I don't believe you can do anything except find the OS and architecture. I feel as if I've seen this in flash, but strictly js will not find the speed. I agree with Scott. If your potential users could have issues, redesign. Otherwise, my i5 was entirely happy with the site. Good luck!

提交回复
热议问题