OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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 (function() { |
| 6 "use strict"; |
| 7 |
| 8 var START_LOADING_DELAY = 1000; |
| 9 |
| 10 function doLazyLoad() { |
| 11 function lazyLoadUrl(url) { |
| 12 var link = document.createElement('link'); |
| 13 link.rel = 'import'; |
| 14 link.href = url; |
| 15 document.body.appendChild(link); |
| 16 } |
| 17 |
| 18 lazyLoadUrl('chrome://resources/polymer/v1_0/iron-icons/iron-icons.html'); |
| 19 } |
| 20 |
| 21 window.addEventListener('load', function() { |
| 22 setTimeout(doLazyLoad, START_LOADING_DELAY); |
| 23 }); |
| 24 })(); |
OLD | NEW |