The wavy-underline setting uses text-decoration which is expensive to render. In a lorem ipsum with 150 paragraphs (13 227 words), most of which get highlighted this can lead to a visible lag when scrolling with wavy-underline enabled (it currently is opt-in).
Description
The
wavy-underline
setting uses text-decoration which is expensive to render. In a lorem ipsum with 150 paragraphs (13 227 words), most of which get highlighted this can lead to a visible lag when scrolling withwavy-underline
enabled (it currently is opt-in).Reproduce
background-box
themetheme
towavy-underline
Expected behavior
Scrolling is smooth.
The native underline is expensive because it tries to pack the waves nicely to match word boundaries and support different styles. We could explore:
Context
This is seen in all versions of extension (0.7.x and 0.8.2) regardless of JupyterLab and CodeMirror version.