Next.js Discord

Discord Forum

@next/third-parties/google is blocking page load

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
I'm using this to load a GTAG on my page:

https://nextjs.org/docs/pages/building-your-application/optimizing/third-party-libraries

It's supposed to be loading it after hydration occurs, but when I look at page speed insights for my pages, it's loading before the rest of the page and blocking for a significant amount of time (hundreds of milliseconds).

I'm using it in my _app route (pages router) exactly as instructed in the linked page from the docs.

Anybody know how to fix this? Thanks in advance.

0 Replies