22

Passive event listeners are a new feature in the DOM spec that enable developers to improve scroll performance, with a simple javascript piece of code like this:

document.addEventListener('touchstart', handler, {passive: true});

Is there a way to propagate this feature on jQuery function .on() or the only solution is to migrate all jQuery .on() to addEventListener?

zp26
  • 1,507
  • 8
  • 20
  • 38

0 Answers0