打开浏览器开发人员工具会影响应用程序性能吗? [英] Does opening browser developer tools affect application performance?

查看:109
本文介绍了打开浏览器开发人员工具会影响应用程序性能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道打开浏览器开发人员工具是否真的以任何方式影响应用程序性能.这不只是考虑在同一窗口中打开开发人员工具,还可以在新窗口或同一窗口中进行.

I would like to know if opening browser developer tools really affect the application performance in any way. It's not about just considering opening the developer tools in the same window, it can be in a new window or the same window.

如果开发人员工具未打开与打开状态之间,应用程序渲染/性能是否也存在差异?

Also is there any difference in application rendering/performance if developer tool is not opened vs opened state?

推荐答案

是的,打开浏览器的开发人员工具会对页面的性能产生影响.这是因为他们观察页面的不同方面.

Yes, opening the developer tools of a browser has influence on the page's performance. This is because they observe different aspects of the page.

例如JavaScript调试器会影响JavaScript的执行性能,因为它必须检查异常或是否必须在断点处停止执行.

E.g. the JavaScript debugger influences the execution performance of the JavaScript, because it has to check for exceptions or whether the execution has to be stopped on a breakpoint.

其他面板以不同的方式影响页面的性能,例如渲染时.

Other panels influence page's performance in different ways, e.g. when rendering it.

当然,尽管无法完全避免,但这些工具的开发人员试图将这些影响保持在最低水平.

Of course, the developers of those tools try to keep those effects at a minimum, though they can't be avoided completely.

此外,开发人员工具通常仅在启用页面时才会影响页面的性能,但有一些例外,例如错误日志记录(在禁用工具时也会执行).

Also, the developer tools normally only affect the performance of a page when they are enabled, with a few exceptions like error logging, which is also done while the tools are disabled.

这篇关于打开浏览器开发人员工具会影响应用程序性能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆