Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Website Scrool Performance

Should I add code to improve my website's scroll performance?

itshan10
Excursionist
28 0 8

Hi,
Someone suggested me to add this code in my website on every page. To improve the scroll performance of my website. Should I add this code to my website for my website's speed and scroll performance.

itshan10_0-1654376857580.png

 

Replies 5 (5)

made4Uo
Shopify Partner
3856 717 1197

Hi @itshan10,

 

This code listens to a touch event, therefore this does not apply to device that does not have a touch screen. To answer you question, why don't you duplicate your theme, and add the code to the duplicated theme. Run the lighthouse in the incognito browser, and see the changes in performance. 

 

To run the lighthouse

1. Open an incognito browser

2. Open your website url

3. Right click and click inspect. 

4. Go to lighthouse. Follow the image below

Screenshot 2022-06-04 154354.jpg

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
itshan10
Excursionist
28 0 8

Hi,
Thank you for your reply. I'll try. But where exactly should I add the code?

made4Uo
Shopify Partner
3856 717 1197

Hi @itshan10,

 

I thought that someone suggested to add it, knows where to add it. Any way, you did not mention your Theme, nor your website. It will be hard to guess the file name but it should be the overall js file. Usually, it is called theme.js or global.js

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
itshan10
Excursionist
28 0 8

Ok,

My site is kidzee.com.tr but there is a redirect here. Entries from outside Turkey will be redirected to a different site. I'm using the Flow theme by the way.
I'll try adding either to theme.js or global.js, thanks.

itshan10
Excursionist
28 0 8

Screenshot_5.png

Which one?  there is no global.js