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

Unified Diff: chrome/browser/resources/md_history/app.js

Issue 2509593007: MD History: Preload bold Roboto font (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 0b287d535ae590723fb2e1f9422bfe80010d7e95..7f36d58d6d4bebdbe35d70c9d20b998cd21dd404 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -147,7 +147,11 @@ Polymer({
}
// Lazily load the remainder of the UI.
- md_history.ensureLazyLoaded();
+ md_history.ensureLazyLoaded().then(function() {
+ window.requestIdleCallback(function() {
+ document.fonts.load('bold 12px Roboto');
+ });
+ });
},
/** Overridden from IronScrollTargetBehavior */
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698