Reduce number of expensive calls to List.redraw() during load of settings page.
- Removed unnecessary List.redraw calls from -- network_list.js -- autofill_edit_address_overlay.js -- content_settings_exceptions_area.js - Added an early return to List.redraw() for the case clientHeight == 0 (eg. if the list is not visible). - Some small cleanup. Overall there were about 68 expensive (ie. no early return) calls to redraw() which I could reduce to 26. The speedup is about 7% / 28ms for the "onload" event on my desktop machine. BUG=chrome:143116 Review URL: https://chromiumcodereview.appspot.com/10824328 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152153 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment