Relanding 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 Review-Url: https://codereview.chromium.org/2114793002 Cr-Commit-Position: refs/heads/master@{#403366}
Showing
Please register or sign in to comment