Skip to content

Commit

Permalink
feat: async script loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zlumer committed Apr 26, 2023
1 parent 06f37c8 commit ca37665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slise/embed-react",
"version": "1.0.2",
"version": "1.0.3",
"description": "React component to embed Slise into your website",
"main": "./lib/index.js",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const SliseAd: React.FC<SliseAdProps> = props =>
const [_loading, _error] = useScript({
src: "https://v1.slise.xyz/scripts/embed.js",
checkForExisting: true,
async: true,
})
return (
<ins
Expand Down

0 comments on commit ca37665

Please sign in to comment.