In my React+Gatsby project, I have used Slick Slider, which works fine on localhost. However, in production, its CSS is not being applied during the initial render, causing a second reload.
The problem isn’t with the slider itself, as I’ve tried using different slider libraries. The slider contains images fetched through a GraphQL query, but I also tried importing the images manually.
New contributor
Tarun Thakur is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.