Lenis Smooth Scroll Weird Lag

I’m trying to add Lenis Smooth Scroll to my project and it causes a 1-2 second lag every time I open the website. I tried using defer on the lenis script but then it didn’t work. I’ve used lenis on 4 different websites and I had the same problem.