docs: add defer for website inject code

This commit is contained in:
moonrailgun 2023-10-28 01:22:40 +08:00
parent 7f014b539e
commit 1c089cd39e

View File

@ -113,7 +113,7 @@ const WebsiteListTable: React.FC<{ workspaceId: string }> = React.memo(
{
key: 'action',
render: (_, record) => {
const trackScript = `<script async src="${location.origin}/tracker.js" data-website-id="${record.id}"></script>`;
const trackScript = `<script async defer src="${location.origin}/tracker.js" data-website-id="${record.id}"></script>`;
return (
<div className="flex gap-2 justify-end">