Skip to content

Commit

Permalink
chore: load smartpy compiler scripts async (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaskarSingh authored Nov 6, 2020
1 parent 4f22dee commit 81fe2a8
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,58 @@ export default function HTML(props) {
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
{props.headComponents}
</head>
<body {...props.bodyAttributes}>
{props.preBodyComponents}
<div
key={`body`}
id="___gatsby"
dangerouslySetInnerHTML={{ __html: props.body }}
/>
{props.postBodyComponents}
<script
src={withPrefix('eztz.min.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('sodium-sumo-master.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('execute.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('smartjs/smart.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('smartjs/smartmljs.bc.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('brython/brython.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
<script
src={withPrefix('brython/brython_stdlib.js')}
type="text/javascript"
charSet="utf-8"
async
></script>
{props.headComponents}
</head>
<body {...props.bodyAttributes}>
{props.preBodyComponents}
<div
key={`body`}
id="___gatsby"
dangerouslySetInnerHTML={{ __html: props.body }}
/>
{props.postBodyComponents}
<script type="text/python" src={withPrefix('smartpyio.py')}></script>
</body>
</html>
Expand Down

0 comments on commit 81fe2a8

Please sign in to comment.