WebSite X5Help Center

 
Nektarios K.
Nektarios K.
User

Does not use passive listeners to improve scrolling performance  en

Autor: Nektarios K.
Besucht 2274, Followers 1, Geteilt 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

https://www.mieconsultancy.com/

https://www.harastudios.com/

http://www.gallerykonti.com/

Gepostet am
3 ANTWORTEN
Adrian B.
Adrian B.
User

Great guide Aleksej! Thank you

Mehr lesen
Gepostet am von Adrian B.
Aleksej H.
Aleksej H.
Moderator

Hello. Not at all.

Mehr lesen
Gepostet am von Aleksej H.