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

Unified Diff: ui/login/account_picker/user_pod_template.js

Issue 1808223003: Refactor oobe/login screens so lock screen can be loaded faster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rename login_login_oobe_shared to login_non_lock_shared + misc changes Created 4 years, 9 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
« no previous file with comments | « ui/login/account_picker/user_pod_template.html ('k') | ui/login/display_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_template.js
diff --git a/ui/login/account_picker/user_pod_template.js b/ui/login/account_picker/user_pod_template.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a5ee8a2ea1b1c059f0a9b3ca38ec92ca0d7efb5
--- /dev/null
+++ b/ui/login/account_picker/user_pod_template.js
@@ -0,0 +1,24 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+(function() {
+ "use strict";
+
+ var START_LOADING_DELAY = 1000;
+
+ function doLazyLoad() {
+ function lazyLoadUrl(url) {
+ var link = document.createElement('link');
+ link.rel = 'import';
+ link.href = url;
+ document.body.appendChild(link);
+ }
+
+ lazyLoadUrl('chrome://resources/polymer/v1_0/iron-icons/iron-icons.html');
+ }
+
+ window.addEventListener('load', function() {
+ setTimeout(doLazyLoad, START_LOADING_DELAY);
+ });
+})();
« no previous file with comments | « ui/login/account_picker/user_pod_template.html ('k') | ui/login/display_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698