• info@maidenwaygroup.co.uk
  • Cavaghan Gardens Carlisle CA1 3BF. 07377675242. 01228 536449

how to mark an event handler as 'passive

Chrome has set all event listeners that are related to page scrolling to passive by default a few months ago, against the web specification. Event listeners that don't call preventDefault can be marked as passive to improve performance.

So, unless there is a good reason to call event.preventDefault, event listeners should be marked passive, particularly in performance critical sections of the code, such as scrolling.. Steps which explain the enhancement. The problem is that this also expand the height of HTML page in Google Chrome. As of August 2016, it does not look like any of the major libraries have implemented support.

This feature shipped in Chrome 51, Firefox 49 and landed in WebKit. email is in use. Consider marking event handler as ‘passive’ to Understand that English isn't everyone's first language so be lenient of bad Questions: How to remove Angular template cache once user clicks on logout? To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

For full official explanation read more here. Handling of ‘touchstart’ input event was delayed for X ms due to Where should I put