-
Couldn't load subscription status.
- Fork 18
Open
Description
Segment seems to block the main thread for 300+ ms
We are using async tags though. Any ideas?
// Segment
renderSegmentSnippet() {
const opts = {
apiKey: env.SEGMENT_WRITE_KEY,
page: true,
};
if (process.env.NODE_ENV === "development") {
return snippet.max(opts);
}
return snippet.min(opts);
}
...
{/* Segment */}
<script
async
dangerouslySetInnerHTML={{ __html: this.renderSegmentSnippet() }}
/>
damjtoh, lucasassisrosa and hannahcancode
Metadata
Metadata
Assignees
Labels
No labels
