Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Issue 2940233003: MD Bookmarks: Lazily render dropdown menus (Closed)

Created:
3 years, 6 months ago by tsergeant
Modified:
3 years, 6 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, michaelpg+watch-md-ui_chromium.org, vitalyp+closure_chromium.org, jlklein+watch-closure_chromium.org, arv+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Lazily render dropdown menus This defers rendering the dropdown menus from the toolbar and command manager until they are actually needed. This saves a small amount of time (~10ms) during page load. BUG=727177 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2940233003 Cr-Commit-Position: refs/heads/master@{#481425} Committed: https://chromium.googlesource.com/chromium/src/+/9b9aa15f7c29fc3184868e63b1a9e6abb6d43d73

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Flush before show #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -55 lines) Patch
M chrome/browser/resources/md_bookmarks/command_manager.html View 1 2 3 1 chunk +19 lines, -17 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/command_manager.js View 1 2 3 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/toolbar.html View 1 chunk +28 lines, -24 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/toolbar.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/command_manager_test.js View 1 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/toolbar_test.js View 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
tsergeant
3 years, 6 months ago (2017-06-16 06:10:37 UTC) #5
tsergeant
On 2017/06/16 06:10:37, tsergeant wrote: Eugh, I'm seeing some issues with the command manager dropdown ...
3 years, 6 months ago (2017-06-19 03:34:41 UTC) #11
tsergeant
Alright, this is now fixed (with a flush 😓). PTAL
3 years, 6 months ago (2017-06-20 07:43:14 UTC) #18
calamity
lgtm https://codereview.chromium.org/2940233003/diff/40001/chrome/browser/resources/md_bookmarks/toolbar.js File chrome/browser/resources/md_bookmarks/toolbar.js (right): https://codereview.chromium.org/2940233003/diff/40001/chrome/browser/resources/md_bookmarks/toolbar.js#newcode81 chrome/browser/resources/md_bookmarks/toolbar.js:81: var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown.get()); ...
3 years, 6 months ago (2017-06-21 08:38:27 UTC) #19
tsergeant
https://codereview.chromium.org/2940233003/diff/40001/chrome/browser/resources/md_bookmarks/toolbar.js File chrome/browser/resources/md_bookmarks/toolbar.js (right): https://codereview.chromium.org/2940233003/diff/40001/chrome/browser/resources/md_bookmarks/toolbar.js#newcode81 chrome/browser/resources/md_bookmarks/toolbar.js:81: var menu = /** @type {!CrActionMenuElement} */ (this.$.dropdown.get()); On ...
3 years, 6 months ago (2017-06-22 00:10:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940233003/40001
3 years, 6 months ago (2017-06-22 00:10:44 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/125616) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-22 00:13:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940233003/60001
3 years, 6 months ago (2017-06-22 00:27:06 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, build has not started yet; ...
3 years, 6 months ago (2017-06-22 02:18:29 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940233003/60001
3 years, 6 months ago (2017-06-22 02:48:01 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 03:22:46 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9b9aa15f7c29fc3184868e63b1a9...

Powered by Google App Engine
This is Rietveld 408576698