Skip to content

When the highlight code text is too large, it can cause the browser to lag and even crash #13

@torisgzhang

Description

@torisgzhang

Describe the issue/behavior that seems buggy

When I highlight the code text is too large, causing the browser to crash, open the browser DevTools found that the plugin will be a large number of text into the dom, too much dom caused the browser to crash and crash, please ask me when I need to highlight a large number of code text what should I do to avoid this problem?

Sample Code or Instructions to Reproduce

Expected behavior

I'm testing this in the demo on the official website by pasting in a lot of code text, and I'm also having this problem, the demo page stutters and I can't do anything with it.
image

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions