Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Is it possible to check whether a browser is fast by JavaScript in a simple way?

I am building a one-page app.

I have some visual features that can be on or off.

A simple way is to ask the user whether they would like to see better effects.

However, is it possible for me to detect it from JavaScript rather than asking them?

For instance:

var iterations = 100000000;
for(var i = 0; i < iterations; i++ ){
  // do nothing
};
var time_took = console.timeEnd();
if(time_took < 150) {
  // good device
  launchEffects();
}

Is this way above reliable? Any good way to achieve this? Just approximate performance check is good, I don't want to import huge 3rd-party library.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!