Does not use passive listeners to improve scrolling performance

Does not use passive listeners to improve scrolling performance

PoojaHiwade
Excursionist
26 0 13

I have added all the possible code for below error but there is no luck to solve the error . the site is in shopify. can any one help for solution. 

 
thread-205008989-15141003927350554432.png
Replies 4 (4)

Ujjaval
Shopify Partner
1242 197 210

@PoojaHiwade 
Add below code into theme.liquid file within script tag 

document.addEventListener('touchstart', onTouchStart, {passive: true});

  

PoojaHiwade
Excursionist
26 0 13

any other solution because we dont have theme.liquid file. it will work if we add it into a theme.scss.liquid file?

Ujjaval
Shopify Partner
1242 197 210

@PoojaHiwade Which theme u are using? Can you share your store url?

 

PoojaHiwade
Excursionist
26 0 13

Hello

 

As per above mention i added the code given by you but it can not work for website the error is not solve.