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
There are going to be some new metrics in Lighthouse, one of which looks at whether touch event listeners are being marked as passive.
We currently use touch events in two places: drawers and the ripple. We already have passive event listeners for the drawer where supported, but the ripple doesn't do the same. As long as it doesn't cancel the events, it should be able to make use of passive as well.
Making sure we apply passive event listeners wherever possible would both ensure better performance in MDC-Web components, as well as higher Lighthouse scores for applications using it.
The text was updated successfully, but these errors were encountered:
There are going to be some new metrics in Lighthouse, one of which looks at whether touch event listeners are being marked as passive.
We currently use touch events in two places: drawers and the ripple. We already have passive event listeners for the drawer where supported, but the ripple doesn't do the same. As long as it doesn't cancel the events, it should be able to make use of passive as well.
Making sure we apply passive event listeners wherever possible would both ensure better performance in MDC-Web components, as well as higher Lighthouse scores for applications using it.
The text was updated successfully, but these errors were encountered: