You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive.
#2130
Open
jamesuejio opened this issue
Aug 7, 2017
· 2 comments
Chrome throws warning [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
Possible Solution
Change
addEventListener(eventType, method); to
addEventListener(eventType, method. {passive: true});
Steps to Reproduce (for bugs)
Create a chart and check the console.
Environment
c3.js version: 0.4.13
Browser name and version: Chrome 59.0.3071.115
The text was updated successfully, but these errors were encountered:
Worth noticing that one needs to have their Chrome console set to output Verbose level to see [Violation] outputs, but yes it seems a good point of optimization.
Expected Behavior
c3.js should be optimized for performance
Current Behavior
Chrome throws warning
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
Possible Solution
Change
addEventListener(eventType, method); to
addEventListener(eventType, method. {passive: true});
Steps to Reproduce (for bugs)
Create a chart and check the console.
Environment
c3.js version: 0.4.13
Browser name and version: Chrome 59.0.3071.115
The text was updated successfully, but these errors were encountered: