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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2802583003: MD Settings: remove an import and some variables from early loading shim (Closed)
Patch Set: attr->class 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/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index afc8726873188ce436ee3b1e39a9702e29660741..efb960be8fedd4650de186b3b731c13c40483f99 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -165,11 +165,14 @@ Polymer({
/** @override */
attached: function() {
+ document.documentElement.classList.remove('loading');
+
setTimeout(function() {
chrome.send(
'metricsHandler:recordTime',
['Settings.TimeUntilInteractive', window.performance.now()]);
});
+
// Preload bold Roboto so it doesn't load and flicker the first time used.
document.fonts.load('bold 12px Roboto');
settings.setGlobalScrollTarget(this.$.container);

Powered by Google App Engine
This is Rietveld 408576698