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

Unified Diff: samples/third_party/dromaeo/generate_dart2js_tests.py

Issue 23121004: Re-try of 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
« no previous file with comments | « pkg/browser/lib/dart.js ('k') | sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/generate_dart2js_tests.py
diff --git a/samples/third_party/dromaeo/generate_dart2js_tests.py b/samples/third_party/dromaeo/generate_dart2js_tests.py
index 1c33f9d35b8b248bdb5738ab0e8e6e691966c17a..800eaabcb4d6dde9ebb7d9e73ff5fd031a574fb0 100755
--- a/samples/third_party/dromaeo/generate_dart2js_tests.py
+++ b/samples/third_party/dromaeo/generate_dart2js_tests.py
@@ -62,7 +62,7 @@ def HtmlConvert(infile, compiler):
jsname = '%s.%s.js' % (testname, compiler)
outname = os.path.join(outdir, jsname)
Compile(dartname, outname, compiler)
- script = '<script type="text/javascript" src="%s">' % jsname
+ script = '<script type="text/javascript" src="%s" defer>' % jsname
outfile.write(re.sub(pattern, script, line))
else:
outfile.write(line)
« no previous file with comments | « pkg/browser/lib/dart.js ('k') | sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698