gpt4 book ai didi

css - "Will-change memory consumption is too high"火狐问题?

转载 作者:太空宇宙 更新时间:2023-11-04 06:15:19 24 4
gpt4 key购买 nike

首先这个警告是什么意思?

Will-change memory consumption is too high. Budget limit is thedocument surface area multiplied by 3 (35516 px). Occurrences ofwill-change over the budget will be ignored.

其次,我该如何解决。

我在 firefox 和 google chrome 浏览器中都遇到了这个警告。

最佳答案

我遇到了同样的问题,可以通过以下方式解决:

首先,请在您的 CSS 文件或片段中找到术语“will-change”。例如,它看起来像这样。

.sidebar {
will-change: transform;
}

您可以将“transform”替换为“auto”或“transform !important”。他们都解决了我的问题!

mozilla 的简要说明:

The above example adds the will-change property directly to the stylesheet, which will cause the browser to keep the optimization in memory for much longer than it is needed. will-change MDN web docs

希望这会有所帮助!

关于css - "Will-change memory consumption is too high"火狐问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56025536/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com