Open ChristopheCVB opened 1 year ago
A workaround is to retry to push ads in component onMounted
with a slight delay (greater than the page transition in duration)
onMounted(() => {
setTimeout(() => (window.adsbygoogle || []).push({}), 350) // My page transition duration is 300ms
})
Of course, this generates more errors in console (the same described above), but those can be safely ignored
Im still getting this with nuxt3
@lipecss did you try the workaround above?
Pushing Ads fail when Page Transition is enabled
Provided
Versions
Extract from
package.json
Config
pageTransition
is set innuxt.config.ts
Setting the
onPageLoad
totrue
doesn't helpCurrent Result
Ads don't load and the following error appears in client-side console:
Expected Result
Ads should load seamlessly when enabling Page Transition in
nuxt.config.ts