You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/09/11 11:12:37 UTC

[GitHub] [incubator-echarts] new08 commented on issue #7047: 在Angular应用中使用echart,会持续占用cpu

new08 commented on issue #7047:
URL: https://github.com/apache/incubator-echarts/issues/7047#issuecomment-691032739


   我在使用 this.ngZone.runOutsideAngular(() => { echarts.init(nativeElement); }) 后,在 Performance 火焰图里看还是由 AnimationFrame Fired -> zone.js -> (zrender) step。    
   但如果在 zone.js 加载前,设置标志 __zone_symbol__requestAnimationFrame = true ,就不会有 zone.js 了。[看这个](https://github.com/angular/angular/issues/8804#issuecomment-439694783)     
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org