Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In console Google Maps JavaScript API has been loaded directly without loading=async. and Tracking Prevention blocked #92

Open
iUnknownWs opened this issue Mar 19, 2024 · 1 comment

Comments

@iUnknownWs
Copy link

Describe what you're reporting
When the autocomplete component its rendered a two warnings appears on the console

How can we reproduce it?
Just the basic usage of autocomplete component

Screenshots
image

Device or enviroment
PC Web Vue3 Composition Vite

Windows 11
Edge
Pnpm
vue-google-maps-community-fork 0.3.1

@SaqibSyed1014
Copy link

SaqibSyed1014 commented Apr 22, 2024

I encountered the same warning in my project using nuxt3. I solved it by adding loading: 'async' where I was defining the google maps plugin. In vue3, you can add this where you're registering google maps component like this:
const app = createApp(App) app .use(VueGoogleMaps, { load: { key: 'YOUR_API_KEY_COMES_HERE', loading: 'async' }, }) .mount('#app')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants