What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-08 10:40:11
Does not use passive listeners to improve scrolling performance
//add this code in the last of u re code jQuery.event.special.touchstart = { setup: function( _, ns, handle ) { this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") }); } }; jQuery.eve... Add solution -
Javascript 2021-10-07 17:54:02
how to add make touchstart passive in jquery "3.4.0"
jQuery.event.special.touchstart = { setup: function (_, ns, handle) { this.addEventListener('touchstart', handle, { passive: !ns.includes('noPreventDefault') }); } }; jQuery.event.special.touchmove =... Add solution -
Other 2021-09-11 03:01:02
class="lazy"
/* lazyload.js (c) Lorenzo Giuliani * MIT License (http://www.opensource.org/licenses/mit-license.html) * * expects a list of: * `<img src="blank.gif" data-src="my_image.png" width="600" height="400" class=... Add solution -
Javascript 2021-08-28 01:36:01
[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL> [Violation] 'setTimeout' handler took 59ms
jQuery.event.special.touchstart = { setup: function( _, ns, handle ) { this.addEventListener('touchstart', handle, { passive: !ns.includes('noPreventDefault') }); } }; jQuery.event.special.touchmove = { setup: function( _, ns, handle )... Add solution