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

Side by Side Diff: chrome/test/data/webui/settings/ensure_lazy_loaded.js

Issue 2754563002: MD Settings: Lazy load the contents of the "advanced" settings. (Closed)
Patch Set: Address comments. Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('settings', function() {
6 function ensureLazyLoaded() {
7 // Only trigger lazy loading, if we are in top-level Settings page.
8 if (location.href == location.origin + '/') {
9 suiteSetup(function() {
10 return new Promise(function(resolve, reject) {
11 // This URL needs to match the URL passed to <settings-idle-load> from
12 // <settings-basic-page>.
13 Polymer.Base.importHref('/lazy_load.html', resolve, reject, true);
14 });
15 });
16 }
17 }
18
19 return {
20 ensureLazyLoaded: ensureLazyLoaded,
21 };
22 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698