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

Unified Diff: tools/testing/dart/browser_test.dart

Issue 22488002: Tightening up dart2js load timing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: tools/testing/dart/browser_test.dart
diff --git a/tools/testing/dart/browser_test.dart b/tools/testing/dart/browser_test.dart
index 3d9dbd910cb702469220cc439f53b6d72c940a46..646115bf7934710a4e9d30d73625b3e81c10b1ec 100644
--- a/tools/testing/dart/browser_test.dart
+++ b/tools/testing/dart/browser_test.dart
@@ -25,7 +25,8 @@ String getHtmlContents(String title,
<script type="text/javascript"
src="/root_dart/pkg/unittest/lib/test_controller.js">
</script>
- <script type="$scriptType" src="$sourceScript" onerror="externalError(null)">
+ <script type="$scriptType" src="$sourceScript" onerror="externalError(null)"
+ defer>
</script>
<script type="text/javascript"
src="/root_dart/pkg/browser/lib/dart.js"></script>
@@ -46,7 +47,7 @@ String getHtmlLayoutContents(String scriptType, Path sourceScript) =>
<script type="text/javascript">
if (navigator.webkitStartDart) navigator.webkitStartDart();
</script>
- <script type="$scriptType" src="$sourceScript"></script>
+ <script type="$scriptType" src="$sourceScript" defer></script>
</body>
</html>
""";

Powered by Google App Engine
This is Rietveld 408576698