Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too much CJK spans cause chrome lag #1280

Closed
cailiang9 opened this issue Mar 4, 2013 · 2 comments
Closed

too much CJK spans cause chrome lag #1280

cailiang9 opened this issue Mar 4, 2013 · 2 comments

Comments

@cailiang9
Copy link

When I edit a tex file using ace editor and syntex highlighter,
I always find the response of the editor is a little lag.
The tex file is in chinese and about 56kByte in size.

When I inspect elements in chrome, I found that there are too many elements.
e.g. 中华人民共和国 is <span ...>中
<span ...>华...<span ...>国

I noticed that english words are in a single span.
So can CJK words also be merged as 中华人民共和国?
I think this will reduce the lag and improve the user experiences.

Considering the wrap line function, spaces, punctuation and symbols can be used to separate too long spans.

My laptop cpu is x61 T9300, already a mid-high cpu. If it is lag, other laptop will be more severe.

@nightwing
Copy link
Member

Spans are needed to force cjk characters to be 2x normal character width.
see #460

@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants