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

Unified Diff: chrome/browser/PRESUBMIT.py

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: Minor tweaks and 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/PRESUBMIT.py
diff --git a/chrome/browser/PRESUBMIT.py b/chrome/browser/PRESUBMIT.py
index 476f349de75517385f0831597c50ed768c607c04..759e3f24d634e842aa0f03386c57551f37890bd7 100644
--- a/chrome/browser/PRESUBMIT.py
+++ b/chrome/browser/PRESUBMIT.py
@@ -55,12 +55,16 @@ def _CommonChecks(input_api, output_api):
def _html_css_js_resource(p):
return p.endswith(('.html', '.css', '.js')) and p.startswith(search_dirs)
- BLACKLIST = ['chrome/browser/resources/md_downloads/crisper.js',
- 'chrome/browser/resources/md_downloads/vulcanized.html',
- 'chrome/browser/resources/md_history/app.crisper.js',
- 'chrome/browser/resources/md_history/app.vulcanized.html',
- 'chrome/browser/resources/pdf/index.html',
- 'chrome/browser/resources/pdf/index.js']
+ BLACKLIST = [
+ 'chrome/browser/resources/md_downloads/crisper.js',
+ 'chrome/browser/resources/md_downloads/vulcanized.html',
+ 'chrome/browser/resources/md_history/app.crisper.js',
+ 'chrome/browser/resources/md_history/app.vulcanized.html',
+ 'chrome/browser/resources/md_history/lazy_load.crisper.js',
+ 'chrome/browser/resources/md_history/lazy_load.vulcanized.html',
+ 'chrome/browser/resources/pdf/index.html',
+ 'chrome/browser/resources/pdf/index.js'
+ ]
def is_resource(maybe_resource):
return (maybe_resource.LocalPath() not in BLACKLIST and
calamity 2016/09/22 04:00:09 May just want to filter all *.vulcanized.html and
tsergeant 2016/09/22 04:27:57 Done.
_html_css_js_resource(maybe_resource.AbsoluteLocalPath()))
« no previous file with comments | « no previous file | chrome/browser/browser_resources.grd » ('j') | chrome/browser/resources/md_history/lazy_load.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698