idiotWu / smooth-scrollbar

Customizable, Extendable, and High-Performance JavaScript-Based Scrollbar Solution.
https://idiotwu.github.io/smooth-scrollbar/
MIT License
3.32k stars 383 forks source link

Laggy scrolling with Mathjax #173

Open elieven opened 6 years ago

elieven commented 6 years ago

Having Mathjax / LaTeX and such inside the scrolling div makes the scrolling very laggy on Chrome. I'm aware that Chrome and IE do not support MathML while Edge and Firefox do (which is perfectly shown by these two not lagging). I have seen no scroll lag with many images and lots of text but having a relatively small amount of math (more than 30 equations - even simple ones) makes the scrolling very laggy. Is that because of the large amount of HTML added or is there another reason? I'd like to use math in my project and I dont know if I should not use the scrollbar (which I really fon't want to) or make every equation into an image (which is an even bigger pain in the ass). If there is a fix or something please let me know :)

elieven commented 6 years ago

I have tried and switched to SVG output mode and the scrollbar runs smoothly. Extremely large amounts of text and images are also not a problem for the scrolbar. It seems to be pointing at HTML as the problem.

edit: spelling