Does not use passive listeners to improve scrolling performance
Author: Nektarios K.
Visited 2271,
Followers 1,
Shared 0
Hi there,
Google PageSpped show me "Does not use passive listeners to improve scrolling performance"
As I read need to add the following code
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ){
this.addEventListener("touchstart", handle, { passive: true });
}
};
right after jQuery load.
Is that correct?
If yes I have to edit jquery and put that code at the end of the existing code? If not, where and how I can use it?
I'm sorry for my continued questions I have as a hobby on my webpage and my best friend websites, and always I try to improve it.
I'm not a programmer I'm just Mechanical/ Electrical Engineering / Naval Architecture with zero knowledge of code....
Regards,
Nek/Greg
Posted on the
Hello. You will not be able to apply this code because if you re-upload the site, all changes may be overwritten.
To improve your site's loading speed, try one of these https://magazin.aleksius.com/en/blog/31-website-x5-speed-optimization#speed-optimization
Great guide Aleksej! Thank you
Hello. Not at all.