What's the best way to determine at runtime if a browser is too slow to gracefully handle complex JavaScript/CSS?

前端 未结 6 2205
挽巷
挽巷 2020-12-25 11:55

I\'m toying with the idea of progressively enabling/disabling JavaScript (and CSS) effects on a page - depending on how fast/slow the browser seems to be.

I\'m speci

6条回答
  •  别那么骄傲
    2020-12-25 12:11

    You could run all the benchmarks you want using Web Workers, then, according to results, store your detection about the performance of the machine in a cookie. This is only for HTML5 Supported browsers, of-course

提交回复
热议问题