Search code examples
javascriptwordpressfont-face

Scrolling is slow and laggy, why?


I'm currently developing a website, you can find it [here] !

It's work in progress but still I can figure out why the scroll is so slow.

I'm totaly aware that I will need to minified my JS and probably use some of the head.js magic to reduce loading time.

Moreover, I'm using font-face on the website and the text takes ages to be displayed, is there a way of reducing that ?

Thanks for your time and patience.


Solution

  • It is because you set position: relative; on body tag and overflow-y: scroll; on html tag. I don't see any effect of position: relative; on body so I would say just remove it and move overflow-y: scroll; from html to body tag