开发者

Javascript execution speed

开发者 https://www.devze.com 2023-02-18 00:08 出处:网络
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 o开发者_运维技

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 o开发者_运维技巧r hardware specs?


The connection can impact AJAX calls speed, but NOT loaded javascript execution speed.

Hardward speed also has an impact on javascript execution speed.

Regards,


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


It depends on the browser's JavaScript engine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号