parndt / refinerycms-wymeditor

WYMeditor extension for Refinery CMS

Home Page:http://refinerycms.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live preview causes page to be unresponsive on large posts

matthewhively opened this issue · comments

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