Initial Lag When Dealing With Initial Text Content Containing Only New Line Characters #5890
Unanswered
twosixfoursix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,
I have not filed this as an issue since I do not yet know whether this is due to an error on my part or has something to do with how Android's WebView behaves rather than it being an issue with ace editor. I am unable to reproduce this issue on desktop browsers.
For one-off renderings within my a sandboxed environment, I set specific global variables before the browsers starts and call an init function within the
loadevent of the page which creates the entire editor using the global variables setting the theme, language mode, indent size, initial string content, etc.The behavior occurs regardless of whether I create a new session or add the initial string on as the
valueargument in the editor options.When the text only contains empty lines - specifically
\n, there will be considerable lag/stalling. The problem is however fixed if there is at least one visible char within the string or theshowInvisiblesis set totrue.I have provided some video reference, the black background is to make delays more noticable.
Handling of files containing only
\nvs. files containing other text content.nonworking.mp4
With
showInvisiblesis set totrueworking.mp4
Checklist:
\,`&{window.filedata = `... ... ...`;which would then be set via.setOptions({ ..., value: filedata, ... });or.createEditSession(filedata, ...);withwindow.filedatabeing passed as an argument to the init function.newLineModehas no effect.Please let me know about your thoughts on the matter.
Beta Was this translation helpful? Give feedback.
All reactions