Skip to content

Commit

Permalink
perf: load html2sketch script with async mode (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces authored Jul 3, 2023
1 parent de3ad27 commit 86dde13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/html2sketch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const getSketchJSON = ${
// add html2sketch script
api.addHTMLHeadScripts(() => {
return api.config.html2sketch
? [api.config.html2sketch.scriptUrl || SCRIPT_URL]
? [{ src: api.config.html2sketch.scriptUrl || SCRIPT_URL, async: true }]
: [];
});

Expand Down

0 comments on commit 86dde13

Please sign in to comment.