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

Unified Diff: chrome/browser/ui/webui/md_history_ui.cc

Issue 2264983002: MD History: Lazily load element files which are not needed for first paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove flattenhtml, rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/md_history_ui.cc
diff --git a/chrome/browser/ui/webui/md_history_ui.cc b/chrome/browser/ui/webui/md_history_ui.cc
index e6b721ffdae91558b0721d33ad76571d11d3f725..28693fe75e2af1faa04b64e1dcbb19396774c66b 100644
--- a/chrome/browser/ui/webui/md_history_ui.cc
+++ b/chrome/browser/ui/webui/md_history_ui.cc
@@ -141,6 +141,10 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
IDR_MD_HISTORY_APP_VULCANIZED_HTML);
source->AddResourcePath("app.crisper.js",
IDR_MD_HISTORY_APP_CRISPER_JS);
+ source->AddResourcePath("lazy_load.html",
+ IDR_MD_HISTORY_LAZY_LOAD_VULCANIZED_HTML);
+ source->AddResourcePath("lazy_load.crisper.js",
+ IDR_MD_HISTORY_LAZY_LOAD_CRISPER_JS);
#else
source->AddResourcePath("app.html", IDR_MD_HISTORY_APP_HTML);
source->AddResourcePath("app.js", IDR_MD_HISTORY_APP_JS);
@@ -166,6 +170,7 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
source->AddResourcePath("history_toolbar.js",
IDR_MD_HISTORY_HISTORY_TOOLBAR_JS);
source->AddResourcePath("icons.html", IDR_MD_HISTORY_ICONS_HTML);
+ source->AddResourcePath("lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML);
source->AddResourcePath("list_container.html",
IDR_MD_HISTORY_LIST_CONTAINER_HTML);
source->AddResourcePath("list_container.js",
« no previous file with comments | « chrome/browser/resources/vulcanize.py ('k') | chrome/test/data/webui/md_history/history_grouped_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698