简体   繁体   中英

AngularJs and Fastclick performance issue

I'm working on improving performance of ng application. I've meet with strange side effect of FastClick.

It leads to multiple dispatch Events (see attached image) and to a row of $digest which I would prefer to avoid.

Does anybody know how to cope with such behavior?

点击时间线

Actually it wasn't "fast click" issue. It was partially my mistake. I had a few ng-click handlers that is fired during the event bubbling, and angular-touch ways to $digest on every node element that have ng-click event listener.

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