From 0895a9801ef922f4b0655d24eb1569092014eebe Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 4 Jan 2014 16:34:06 -0800 Subject: todo about async script tags --- emcc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emcc') diff --git a/emcc b/emcc index 621cb340..e02854bd 100755 --- a/emcc +++ b/emcc @@ -1973,6 +1973,11 @@ try: if debug_level >= 4: generate_source_map(target) shutil.move(final, js_target) + # TODO: use an async blob, which would allow code rewriting on the client: + # var blob = new Blob([codeString]); + # var script = document.createElement('script'); + # script.src = URL.createObjectURL(blob); + # document.body.appendChild(script); script_tag = '''''' % base_js_target html.write(shell.replace('{{{ SCRIPT }}}', script_tag)) else: -- cgit v1.2.3-18-g5258