summaryrefslogtreecommitdiff
path: root/AK/String.cpp
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-07-18 20:03:11 +0100
committerLinus Groh <mail@linusgroh.de>2022-07-19 11:10:02 +0100
commit8266ebf3c61c9c6a4aa98cbddd64814230b83d7d (patch)
tree599199bb3a3d48d84167e3728a5229bb72126ebc /AK/String.cpp
parentcdcdc095df47c30d140d9d612390981d673141e9 (diff)
downloadserenity-8266ebf3c61c9c6a4aa98cbddd64814230b83d7d.zip
TextEditor: Debounce update_preview() in on_change event
This avoids lag spikes when undoing/redoing large chunks of HTML/CSS with the HTML preview open. This had been bugging me when reducing LibWeb issues in the text editor. The debounce timeout is 100ms so the delay should not be noticeable.
Diffstat (limited to 'AK/String.cpp')
0 files changed, 0 insertions, 0 deletions