Skip to content

Commit 0895a98

Browse files
committed
todo about async script tags
1 parent ddaac5f commit 0895a98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

emcc

+5
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,11 @@ try:
19731973
if debug_level >= 4:
19741974
generate_source_map(target)
19751975
shutil.move(final, js_target)
1976+
# TODO: use an async blob, which would allow code rewriting on the client:
1977+
# var blob = new Blob([codeString]);
1978+
# var script = document.createElement('script');
1979+
# script.src = URL.createObjectURL(blob);
1980+
# document.body.appendChild(script);
19761981
script_tag = '''<script async type="text/javascript" src="%s"></script>''' % base_js_target
19771982
html.write(shell.replace('{{{ SCRIPT }}}', script_tag))
19781983
else:

0 commit comments

Comments
 (0)