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

Issue 2264983002: MD History: Lazily load element files which are not needed for first paint (Closed)

Created:
4 years, 4 months ago by tsergeant
Modified:
4 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Lazily load element files which are not needed for first paint This splits out many invisible or heavy elements into a separate lazy_load.html file, which is only imported after the main app has rendered. Where necessary, simple CSS shims are added to prevent visible changes to the page. In effect, this splits apart the first meaningful paint from the page being fully interactive, and in the process improves first meaningful paint by 10-15%. BUG=629710 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/cf585f19edbbbfcfabd421a057e68a1d4cee860f Cr-Commit-Position: refs/heads/master@{#420550}

Patch Set 1 #

Patch Set 2 : Update & Fix CSS #

Patch Set 3 : Simplify #

Patch Set 4 : Minor tweaks and rebase #

Total comments: 6

Patch Set 5 : Rebase #

Patch Set 6 : calamity@ review #

Total comments: 2

Patch Set 7 : Remove flattenhtml, rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8240 lines, -7758 lines) Patch
M chrome/browser/PRESUBMIT.py View 1 2 3 4 5 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/PRESUBMIT.py View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/resources/md_history/app.html View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/app.js View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/app.crisper.js View 1 2 3 4 7 chunks +2950 lines, -6081 lines 0 comments Download
M chrome/browser/resources/md_history/app.vulcanized.html View 1 2 3 4 5 6 20 chunks +276 lines, -1610 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.html View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.html View 1 2 3 4 3 chunks +9 lines, -5 lines 0 comments Download
A chrome/browser/resources/md_history/lazy_load.html View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/lazy_load.crisper.js View 1 2 3 4 5 1 chunk +3291 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/lazy_load.vulcanized.html View 1 2 3 4 5 6 1 chunk +1584 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/list_container.html View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_history/shared_style.html View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/vulcanize.py View 1 3 chunks +30 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_history/history_grouped_list_test.js View 1 2 3 3 chunks +8 lines, -13 lines 0 comments Download
M chrome/test/data/webui/md_history/history_routing_test.js View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/md_history_browsertest.js View 1 2 3 2 chunks +16 lines, -13 lines 0 comments Download
M tools/copyright_scanner/third_party_files_whitelist.txt View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
tsergeant
😪🎨
4 years, 3 months ago (2016-09-21 05:26:00 UTC) #16
calamity
lgtm. https://codereview.chromium.org/2264983002/diff/100001/chrome/browser/PRESUBMIT.py File chrome/browser/PRESUBMIT.py (right): https://codereview.chromium.org/2264983002/diff/100001/chrome/browser/PRESUBMIT.py#newcode69 chrome/browser/PRESUBMIT.py:69: return (maybe_resource.LocalPath() not in BLACKLIST and May just ...
4 years, 3 months ago (2016-09-22 04:00:10 UTC) #17
tsergeant
Thanks! +dbeam for WebUI, +sgurun for tools/copyright_scanner/third_party_files_whitelist.txt https://codereview.chromium.org/2264983002/diff/100001/chrome/browser/PRESUBMIT.py File chrome/browser/PRESUBMIT.py (right): https://codereview.chromium.org/2264983002/diff/100001/chrome/browser/PRESUBMIT.py#newcode69 chrome/browser/PRESUBMIT.py:69: return (maybe_resource.LocalPath() ...
4 years, 3 months ago (2016-09-22 04:27:58 UTC) #20
Dan Beam
lgtm w/question i'm trying to kill flattenhtml="true" https://codereview.chromium.org/2264983002/diff/160001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2264983002/diff/160001/chrome/browser/browser_resources.grd#newcode242 chrome/browser/browser_resources.grd:242: <include name="IDR_MD_HISTORY_LAZY_LOAD_VULCANIZED_HTML" ...
4 years, 3 months ago (2016-09-22 04:42:06 UTC) #21
sgurun-gerrit only
On 2016/09/22 04:42:06, Dan Beam wrote: > lgtm w/question > > i'm trying to kill ...
4 years, 3 months ago (2016-09-23 00:20:01 UTC) #22
tsergeant
https://codereview.chromium.org/2264983002/diff/160001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2264983002/diff/160001/chrome/browser/browser_resources.grd#newcode242 chrome/browser/browser_resources.grd:242: <include name="IDR_MD_HISTORY_LAZY_LOAD_VULCANIZED_HTML" file="resources\md_history\lazy_load.vulcanized.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> On 2016/09/22 ...
4 years, 3 months ago (2016-09-23 01:19:51 UTC) #23
tsergeant
Alright, thanks for the reviews. Lets see what breaks. (Hint: it's any local branch which ...
4 years, 3 months ago (2016-09-23 01:35:42 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/2264983002/180001
4 years, 3 months ago (2016-09-23 01:36:27 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 3 months ago (2016-09-23 02:36:07 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 02:38:13 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cf585f19edbbbfcfabd421a057e68a1d4cee860f
Cr-Commit-Position: refs/heads/master@{#420550}

Powered by Google App Engine
This is Rietveld 408576698