Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 1st Jul 2021, 07:17 PM   #1
SEO Consultant
 
LeandroWMaster's Avatar
 
Join Date: 2020
Location: Venezuela
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Does not use passive listeners to improve scrolling performance - JQuery Issues (Lighthouse Report)
Share on: 
fb share twitter share gplus share more share

I am having a problem with a client's website related to the Google Page Speed Insights Report.

The tool if giving me the following diagnostic:

Does not use passive listeners to improve scrolling performance.

Source

...jquery/jquery.min.js?ver=3.5.1:2:41540
Could you help me with this? I have read a lot and I cannot find a reliable answer.

Regards.
LeandroWMaster is offline   Reply With Quote
Unread 2nd Jul 2021, 06:30 AM   #2
New Warrior Member
 
upzilla's Avatar
 
Join Date: 2021
Location: Europe
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: Does not use passive listeners to improve scrolling performance - JQuery Issues (Lighthouse Repo
Share on: 
fb share twitter share gplus share more share

I had the same problem related with jQuery and passive listeners. In my case solution was in this code
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ) {
this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
}
};
upzilla is offline   Reply With Quote
Unread 2nd Jul 2021, 06:31 AM   #3
New Warrior Member
 
upzilla's Avatar
 
Join Date: 2021
Location: Europe
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RE: Does not use passive listeners to improve scrolling performance - JQuery Issues (Lighthouse Repo
Share on: 
fb share twitter share gplus share more share

Another option was

document.addEventListener('touchstart', onTouchStart, {passive: true});
You can try to play with it.
upzilla is offline   Reply With Quote


Bookmarks

Tags
improve, issues, jquery, lighthouse, listeners, passive, performance, report, scrolling


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:26 AM.