Technically, every time a character is pressed, a JavaScript function is ran and attempts to find articles to list for you. This JavaScript function loops through quite a bit of data, but in our testing it ran relatively well.

We did recently receive feedback from a user stating that this feature took 15+ seconds to run each time they typed in a character. During our troubleshooting of this issue, we decided to gather data on how long it takes each browser to execute our JavaScript function. We'd like to share our results with you now.

The Experiment

When running our test, we updated the Javascript code to keep track of how long it takes to run through the function, and then alert the time it took (in milliseconds).

We typed in the search phrase "wordpress plugin install search", and after each character we typed we logged how much time the JavaScript function took to find results.

The Results

Which browser ran our JavaScript code the fastest?

Opera.

Closely behind Opera were Chrome and Firefox, while Safari and Internet Explorer took much longer

Was this answer helpful? 0 Users Found This Useful (0 Votes)