diff options
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 = '''<script async type="text/javascript" src="%s"></script>''' % base_js_target html.write(shell.replace('{{{ SCRIPT }}}', script_tag)) else: |