Replies: 3 comments 2 replies
-
Oh I just found the discussion #53868, which briefly mentions the
|
Beta Was this translation helpful? Give feedback.
-
Will partytown, which next/script is using under the hood, work in the app router? |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any follow-up on this feature? Alternatively, are there any other ways to load 3rd party scripts in the background when app router is used? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the
next/script
feature to load scripts in web workers via Partytown (<Script strategy="worker" />
) does not work with the App Router:It would be great to get scripts loaded by a web worker to improve performance, such as is recommended in some places.
Goals
strategy="worker"
in App Routerthird-party-capital
("offload to a web worker")Non-Goals
--
Background
The feature for the Pages Router was first introduced by @housseindjirdeh in the following PR:
<Script />
using Partytown #34244Proposal
Maybe @housseindjirdeh would be interested in contributing this feature? Or if not, offering some tips on how it could be accomplished?
Beta Was this translation helpful? Give feedback.
All reactions