简体   繁体   中英

How do I find out the reason for Paint being called on every scroll event using chrome devtools

用于滚动页面的Devtools快照

While trying to figure out why the page is janky, I checked on every scroll event there is a call to paint the whole page (a reflow I guess) but I couldn't figure out why this full page paint is happening, can devtools provide more information

In the Sources panel you can set breakpoints on scroll events. Would that help?

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM