DescriptionRelanding MD Settings: Improve rendering performance of fonts page.
First version of this CL was reverted (cl/2119733002).
The fonts page includes a few very large <settings-dropdown-menu> instances.
While implementing force-rendering for the purposes of "search within settings"
it was revealed that it occupied about 1.3s of the main thread to render itself.
There are two separate improvements bundled in this CL.
1) Replace <paper-item> with a simple styled <div>. This change alone reduces
total rendering time from 1.3s to 0.25s.
2) Use the new initialCount feature for dom-repeat to yield, instead of
rendering the entire template all at once.
BUG=602896, 608535
TEST=Click on "Customize fonts", observe how much faster the subpage opens.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/d516b7a2c3b7c11aedd23522b34e6cfbb7916df5
Cr-Commit-Position: refs/heads/master@{#403366}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 11 (5 generated)
|