discourse/app/assets
David Taylor a7cd220704
PERF: Use insertText more efficiently in replaceText (#28880)
Followup to e25578d702

Using execCommand to replace the entire contents of the textarea is very slow for larger posts (it seems the browser does a reflow after every 'virtual keypress'.

This commit updates the `replaceText` function to be more surgical with its `insertAt` calls. Now it only selects & replaces the characters which are actually being replaced.
2024-09-12 16:11:39 +01:00
..
images FIX: Use correct location for wizard background image (#24183) 2023-10-31 15:57:47 +00:00
javascripts PERF: Use insertText more efficiently in replaceText (#28880) 2024-09-12 16:11:39 +01:00
stylesheets UX: Fix confusing "claim reviewable" positioning (#28870) 2024-09-12 16:44:12 +10:00