Skip to content

Live preview causes page to be unresponsive on large posts #42

@matthewhively

Description

@matthewhively

We've found that on our page with a large table of data (over 2,000 rows) the live editor window will cause the page to become unresponsive. It is especially noticeable when attempting to type text into the editor pane.

It appears as though the live preview is attempting to update on every keystroke.
With such a large DOM within the iframe, it lags the page quite heavily and in some cases ( firefox ) the browser can become entirely unresponsive for upwards of 20 minutes.

Editing the html within an external text editor and the pasting everything at once into the editor pane suffices as a work around for now, however it would probably be a good idea to incorporate some sort of throttle/debounce on how quickly the live update iframe attempts to generate the preview.
Only triggering an update once every 500ms or every 1000ms would probably be entirely reasonable.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions