MD Settings: Networks performance enhancements |
||||||
Issue description<settings-internet-page> is a heavy section and needs some love, probably in the form of dom-if. One big problem I see is that it creates network lists (which have dozens of elements) even when the list cannot be shown: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/resources/settings/internet_page/network_summary_item.html&sq=package:chromium&type=cs&l=23 ^ we make the iron-collapse invisible, but still create the components in the list for the network(s). There is also a <div class="known buttons"> in each cr-network-list-item which is hidden for me. We also create <network-summary-item>s for network types that aren't present (e.g. wimax). An empty <network-summary-item> has 102 descendants. For users who only have wi-fi connections, that's 412 invisible elements. End result: in a fake profile, settings-internet-page has 856 descendants (including 53 paper-icon-buttons). If I manually delete stuff that isn't visible, it goes down to 539. Hopefully we can reduce that further too, because that's still 40% of the page elements (for a stub profile).
,
May 4 2016
I filed crbug.com/609156 to capture any requests for additional Internet connection mocks/specs. Please add your anything else you need!
,
May 24 2016
,
May 24 2016
,
Jul 19 2016
,
Jul 19 2016
,
Jul 21 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f commit b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f Author: stevenjb <stevenjb@chromium.org> Date: Thu Jul 21 17:33:48 2016 MD Settings: Internet: Reduce use of hidden for complex sections. This cleanup CL does the following: * Use dom-repeat to only include sections for existing device types. * Use dom-if instead of display to show items with infrequent visibility changes. * Minor layout / CSS cleanup. BUG=609156, 609002 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2167473002 Cr-Commit-Position: refs/heads/master@{#406890} [modify] https://crrev.com/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f/chrome/browser/resources/settings/internet_page/network_summary.html [modify] https://crrev.com/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f/chrome/browser/resources/settings/internet_page/network_summary.js [modify] https://crrev.com/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f/chrome/browser/resources/settings/internet_page/network_summary_item.html [modify] https://crrev.com/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f/chrome/browser/resources/settings/internet_page/network_summary_item.js [modify] https://crrev.com/b4c0d25b2cad8e2f3540f2d9b88607b5a74b339f/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
,
Aug 29 2016
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by steve...@chromium.org
, May 4 2016Status: Available (was: Untriaged)