PolicyStat / ckeditor-spell-check-plugin-js-dev-edge

User interface enhancements and beta features for http://ckeditor-spellcheck.nanospell.com . This repo is for nanospell developers and trusted partners to modify and fork plugin.js
Other
0 stars 0 forks source link

Short circuit the many empty nodes case #22

Open caffodian opened 8 years ago

caffodian commented 8 years ago

Something crazy happened and we ended up with thousands of p tags with a nonbreaking space inside. This causes the document to take upwards of 4 minutes to be responsive after loading. Turning off the spellcheck reduces this wait time to about 10 seconds.

Unfortunately the resulting Chrome timeline causes Chrome debugger to crash. Need to spend some amount of time reproducing this.

Look into ways to short circuit the spellcheck. Perhaps it can use element html to exclude empty nodes from the range that is walked, or something.