Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hi,
The store I am working on have slideshow images on homepage. I want to preload that slideshow images. How can I do this?
For this I need to access section data in head and this object is not accessible there.
Solved! Go to the solution
This is an accepted solution.
Yup, there is no liquid based solution.
You will need to build a service that checks for the LCP image then injects a preload hint. Or just manually change the preload hint each time the LCP image is changed.
This is an accepted solution.
Yup, there is no liquid based solution.
You will need to build a service that checks for the LCP image then injects a preload hint. Or just manually change the preload hint each time the LCP image is changed.
Yes, this will work as the slideshow images does not change frequently.
Thanks for the solution.