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

Unified Diff: chrome/browser/resources/md_downloads/manager.js

Issue 2803653003: MD Downloads: improve early loading shim (Closed)
Patch Set: . Created 3 years, 8 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/resources/md_downloads/manager.js
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js
index d01c3d336a940552c343cf61beb57fdcb8522e12..ec56d5154198fa614cdb1598b457f7f3a43e4a28 100644
--- a/chrome/browser/resources/md_downloads/manager.js
+++ b/chrome/browser/resources/md_downloads/manager.js
@@ -40,6 +40,7 @@ cr.define('downloads', function() {
},
hostAttributes: {
+ // TODO(dbeam): this should use a class instead.
loading: true,
},
@@ -52,6 +53,10 @@ cr.define('downloads', function() {
'itemsChanged_(items_.*)',
],
+ attached: function() {
+ document.documentElement.classList.remove('loading');
+ },
+
/** @private {!PromiseResolver} */
loaded_: new PromiseResolver,
« no previous file with comments | « chrome/browser/resources/md_downloads/manager.html ('k') | chrome/browser/resources/md_downloads/toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698