问题
Hey, this question might sound totally idiotic so I am sorry. I am a total noob what comes to these things, but does the iOS javascript executions speed depend on the internet connection or hardware specs?
回答1:
The connection can impact AJAX calls speed, but NOT loaded javascript execution speed.
Hardward speed also has an impact on javascript execution speed.
Regards,
回答2:
The Internet speed only affects javascript during a request, like an ajax request for example. What your script is actually doing on the page also affects the speed, for example, if you are using doing many changes at a time like manipulating the css, and moving things in the DOM then you will notice performance leaks. That is because document reflow is expensive. If you are simply doing calculations you will not have such problems
回答3:
It depends on the browser's JavaScript engine.
来源:https://stackoverflow.com/questions/5343205/javascript-execution-speed