DYS1230 opened a new issue, #19842: URL: https://github.com/apache/echarts/issues/19842
### Version 5.5.0 ### Link to Minimal Reproduction https://stackblitz.com/edit/vitejs-vite-i5t8vn?file=echarts.js,index.html,main.js&terminal=dev ### Steps to Reproduce The lag issue might be caused by having many elements on the body, a large CSS file, or even due to ECharts itself, but I'm currently not sure. Can see the details in the link provided. When triggering window.onresize, it will console.log the duration. I found that setting canvas.font in `brushText` takes several tens of milliseconds to execute. ### Current Behavior canvas.font property can sometimes take tens or even hundreds of milliseconds ### Expected Behavior No lag issue. ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org