Mentions plugin requests should be throttled #1972
Labels
changelog:skip
A changelog entry should not be added for a given issue.
plugin:mentions
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
target:major
Any docs related issue that should be merged into a major branch.
type:feature
A feature request.
Milestone
Are you reporting a feature request or a bug?
Feature request
Provide detailed reproduction steps (if any)
Currently, given that
config.feed
is set to backend URL, our mentions plugin will issue a HTTP request for each typed character. That might be expensive.For instance, imagine you type
@johnny
, you're issuing (depending on min chars) requests forjo
,joh
,john
(etc.).To mitigate this issue, requests should be throttled. By default I'd say somewhere around 70-120 ms each.
CKEDITOR.tools.eventsBuffer
function provides handling for that.Also throttling thershould should be configurable in mentions config object.
Other details
The text was updated successfully, but these errors were encountered: