Chromium Code Reviews| Index: chrome/browser/resources/ntp4/new_tab.js |
| diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js |
| index 30cfab672ce7f99b65a9fec4a7c709da078df5b6..af7b79c1c2cc1ebdad4b75d834684a5bc63e6673 100644 |
| --- a/chrome/browser/resources/ntp4/new_tab.js |
| +++ b/chrome/browser/resources/ntp4/new_tab.js |
| @@ -709,6 +709,12 @@ cr.define('ntp', function() { |
| }; |
| }); |
| -document.addEventListener('DOMContentLoaded', ntp.onLoad); |
| +document.addEventListener('DOMContentLoaded', function() { |
| + var logo = $('logo-img').querySelector('img'); |
| + if (logo.complete) |
| + ntp.onLoad(); |
| + else |
| + logo.addEventListener('load', ntp.onLoad); |
| +}); |
|
Dan Beam
2014/01/09 18:58:19
^ you should not block the whole NTP on this.
dconnelly
2014/01/10 10:46:57
Done.
|
| var toCssPx = cr.ui.toCssPx; |