How to fix Does not use passive listeners

I’m newbie here, so if there is anything wrong, please forgive.
My new site: run an insight speed test and it show me that:
Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance.

I search this forum and try to disable loadrocket to findout and add this code to my header:

jQuery.event.special.touchstart = {
        setup: function( _, ns, handle ){
            this.addEventListener("touchstart", handle, { passive: true });

Then i turn load rocket on, but error still there.
Could you please help me?
How can i fix this error?
Thank you so much

According to that screenshot that comes from which is seemingly controlled by Google. All you could do is not to include/load that file.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.