Skip to content

Commit

Permalink
Worker - Adding experimental feature
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 28, 2024
1 parent eff221f commit 84198de
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/layout/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Analytics = () => {
// />

// </Head>
<Script id="google-tag-manager" strategy="afterInteractive">
<Script id="google-tag-manager" strategy="worker">
{`
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
Expand Down
2 changes: 1 addition & 1 deletion components/zendeskButton/chatBaseBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ChatBaseBot = () => {
src="https://www.chatbase.co/embed.min.js"
id={chatBaseBotId}
defer
strategy="lazyOnload"
strategy="worker"
/>
)
);
Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const config = {
},
experimental: {
optimizePackageImports: ["tinacms", "@fortawesome/fontawesome-svg-core"],
nextScriptWorkers: true,
turbo: {
resolveExtensions: [
".mdx",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test-and-coverage": "jest --ci --json --coverage --testLocationInResults"
},
"devDependencies": {
"@builder.io/partytown": "^0.10.2",
"@jest/globals": "^29.7.0",
"@next/eslint-plugin-next": "14.2.6",
"@playwright/test": "1.46.0",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit 84198de

Please sign in to comment.