Firefox 在某些 JavaScript 事件时出现白色闪烁
这类似于这个问题:(firefox-making-white- flash-as-it-builds-the-page)但不同之处在于,在我的情况下,该页面已经完全加载。
页面完全加载后,在某些触发向我的页面添加元素的 JavaScript 事件中,Firefox 会产生白色闪光(不是在整个页面上,而是在添加元素的特定 div 上),覆盖大面积的区域。页面(基本上它发生在我要添加内容的 div 的祖先上,但它不是直接祖先)。
我添加的元素位于水平滚动的 div 中,因此页面宽度根本不会改变。而且,它并不一致。有时添加或删除元素会触发白色闪烁,有时则不会。
我假设这只是 FF 重绘页面的方式的问题。
我知道我的问题可能有点模糊,但我不确定是否有人有这方面的经验或有任何建议。任何建议将不胜感激。
This is similar to this question: (firefox-making-white-flash-as-it-builds-the-page) But the difference is that in my situation, that page is already fully loaded.
Well after the page has fully loaded, on certain javascript events that trigger adding elements to my page, Firefox produces a white flash (not over the entire page, but not on the specific div where the elements are being added) covering a large area of the page (basically it happens to an ancestor of the div I am adding content to, but it is not the direct ancestor).
The elements I'm adding are in a horizontally scrolling div, so its not like the page width gets changed at all. Also, it is not consistent. Sometimes the adding or removing elements triggers the white flash, and other times it does not.
I'm assuming this is just an issue with the way FF redraws the page.
I know my question may be a little vague, but I wasn't sure if anyone has had experience with this or has any suggestions. Any advice would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论