DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

improve the time point for spellchecker initializing

Open reidzhou opened this issue 1 year ago • 1 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my idea.

Your idea.

i have tried to off the spellchecker acrroding to the document below image

but i could still found the worker thread of spellchecker. I'm a little confused about this. In my mind, i thought the worker should not be there if the spellchecker feature is disabled. so i dive into the code. aha, the spellchecker initialized when websocket authed successfully. key code is here: https://github.com/ONLYOFFICE/sdkjs/blob/eb92448a74506b94ca984b6c6dd82b715ecf4836/common/docscoapi.js#L1648

and my question is whether this is necessary to initialize spellchecker while authing. it's better to initialize spellchecker when the main page is ready if feature is enabled.

what's your opinion? :)

reidzhou avatar Jan 12 '24 06:01 reidzhou

Hello @reidzhou ! Sorry for late response!

Historically, it happened that the initialization of the spellcheck engine starts upon connection. This is because previously the spellchecker was server-based. Now it's a shared worker. The startup of the worker does not affect the loading speed.

avdddd1111 avatar May 06 '24 13:05 avdddd1111

This issue was closed due no response.

Rita-Bubnova avatar Jun 19 '24 07:06 Rita-Bubnova