Does AMP code get bundled with the app? #12009
Unanswered
LukasBombach
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
We are writing an application hat has a big emphasis on page load performance. We'd like to ship that same page to AMP. I can see that woth Next.js we can export a config like so
... and we would have a component that uses the
useAmp
hook, likewe can enable AMP. 👉 https://nextjs.org/docs/api-reference/next/amp
But if we do that and we have a lot of those things, we'll ship lots of unused AMP code to the normal web and have an unnecessarily big bundle size.
Is that true?
Thanks,
Lukas
Beta Was this translation helpful? Give feedback.
All reactions