Skip to content

[4.7] Speed up rendering of large docs in doc table (#9014)#9150

Merged
epixa merged 1 commit intoelastic:4.7from
Bargs:backport/9014
Nov 21, 2016
Merged

[4.7] Speed up rendering of large docs in doc table (#9014)#9150
epixa merged 1 commit intoelastic:4.7from
Bargs:backport/9014

Conversation

@Bargs
Copy link
Copy Markdown
Contributor

@Bargs Bargs commented Nov 18, 2016

Manual backport of #9014

Back in 2014 a utility was added to insert (word break opportunity)
tags into doc table fields to improve their display in the browser. This
utility looped over every character in _source when it was selected as a
column in the doc table, which it was be default. That really started to
slow things down when displaying large docs. We can maintain similar word
breaking without adding tags by adding some css styles that
do essentially the same job. word-break: break-word gives us the best
formatting but it's not a part of the standard yet (see link below) so I
provided an almost-as-good fallback with break-all.

https://bugs.chromium.org/p/chromium/issues/detail?id=492202#c21

Fixes #6328
Related #1993

Back in 2014 a utility was added to insert <wbr> (word break opportunity)
tags into doc table fields to improve their display in the browser. This
utility looped over every character in _source when it was selected as a
column in the doc table, which it was be default. That really started to
slow things down when displaying large docs. We can maintain similar word
breaking without adding <wbr> tags by adding some css styles that
do essentially the same job. word-break: break-word gives us the best
formatting but it's not a part of the standard yet (see link below) so I
provided an almost-as-good fallback with break-all.

https://bugs.chromium.org/p/chromium/issues/detail?id=492202#c21

Fixes elastic#6328
Related elastic#1993
@Bargs Bargs added backport This PR is a backport of another PR review labels Nov 18, 2016
@epixa
Copy link
Copy Markdown
Contributor

epixa commented Nov 21, 2016

LGTM

@epixa epixa merged commit cb40462 into elastic:4.7 Nov 21, 2016
@epixa epixa changed the title Speed up rendering of large docs in doc table (#9014) [4.7] Speed up rendering of large docs in doc table (#9014) Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants