简体   繁体   中英

How to detect low performance mobile via javascript?

While users open my website, I want to turn off some animation effects if the current performance of the user's device is low.

What's the best practise to ranking the device's performance? For example there are 10 ranks, for the devices below rank 5, I will use different way to show some effects.

There is no way around a device database with precompiled benchmark metrics for general mobile browser users. I am not aware of such a database, since most of them have capabilities and not performance in mind.

However, if you want to package it in a WebView container, you could probably run the benchmark yourself in a separate hidden WebView when the user isn't doing anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM