Javascript execution speed

依然范特西╮ 提交于 2019-12-11 05:07:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!