Web 浏览器中的开发人员菜单帮助

发布于 2024-10-09 09:33:23 字数 246 浏览 0 评论 0原文

我主要使用 safari 进行网页浏览和网页开发测试,但我注意到在一些页面上,“Paint”在调试菜单下的时间线窗格中的渲染时间线下不断被触发。我想知道是否有人可以解释这可能是什么或意味着什么。我尝试在互联网上搜索,但找不到任何相关信息。它看起来像这样:

I mostly use safari for web browsing, and testing for web development, but I have noticed that on a few pages "Paint" is constantly being fired under the rendering timeline in the timeline pane under the debug menu. I was wondering if anyone could explain what that possibly could be or mean. I have tried searching the internet, but can not find any information on it. It looks like this:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

稚然 2024-10-16 09:33:23

此行为可能表示 JavaScript 的基于时间的执行,如使用 setTimeout() 或 setInterval() 所做的那样。大多数浏览器都会进行重新绘制,即使对 dom 树进行微小的更改,也很难预测。如果您有相关页面的 URL,我们可以根据页面本身的问题来解决您的浏览器问题。

This behavior may be an indication of time-based execution of javascript, as done with setTimeout() or setInterval(). Most browsers will do repaint that's hard to predict even on small changes to the dom tree. If you have a URL for the page in question, we could sort out your browser issues from problems on the page itself.

因为看清所以看轻 2024-10-16 09:33:23

这是由于我正在使用的一些插件。特别是 jScrollPane,由于其他插件的原因,可能会如此之高。

It is due, to some plugins I am using. specifically jScrollPane, could be so high, due to other plugins.

呆头 2024-10-16 09:33:23

这可能是由于 HTML5 的画布元素不断被重新绘制。

It might be due to HTML5 with canvas elements constantly being repainted.

勿忘初心 2024-10-16 09:33:23

我认为加载的页面是否包含不同的元素(如图像、flash 等);浏览器单独请求每个元素。一旦浏览器收到请求的元素,就会不断地触发“Paint”。

I think if the loaded page contains different elements (like images, flash,..); The browser requests each element separately. 'Paint' is constantly fired as soon as the requested element is received by the browser.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文