Git Product home page Git Product logo

Comments (4)

thor-n avatar thor-n commented on August 17, 2024

I have same problem, did you find a solution?

from google-adsense.

i330z avatar i330z commented on August 17, 2024

@kovaletsyurii @thor-n have you tired by using no-prefetch in nuxt-link ??

from google-adsense.

modbender avatar modbender commented on August 17, 2024

The reason this happens is exactly because the page is loaded using nuxt-link/router page load

This type of loading doesn't cause browser to reload, and hence the global variable window which is used to store Google ads initialization is never cleared out.

Hence when you change page you might see in console errors saying something like slot already assigned or similar

from google-adsense.

modbender avatar modbender commented on August 17, 2024

The latest version for nuxt 3 seems to already have fixed this

https://github.com/nuxt-modules/google-adsense/blob/master/src/runtime/components-v3/Adsbygoogle.vue

By calling updateAd the complete initialization is re-run causing ads to render

This issue can probably be closed

from google-adsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.