question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lazy loading google

See original GitHub issue

Hi,

When I try to use the directive, I get a Global google var missing. Did you forget to include the places API script?

Of course, because I’m not loading google at all. I use the angular-google-maps.js to lazy load the google maps api like https://angular-ui.github.io/angular-google-maps/#!/api/GoogleMapApi

How to use this lazy loading for this directive ??

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mebiboucommented, Apr 4, 2016

I create a PR #89 to fix this, but since this repo doesn’t seem to be maintained, you guys can use my fork instead (i.e. bower install git://github.com/mebibou/angular-google-places-autocomplete#master)

PS: after that you can also add async="true" to the script of the google maps API and you are good to go 😉

0reactions
jjparsonscommented, Dec 5, 2016

Had this been resolved? It works for me the first time I add the lib and serve. Then I get this issue:

Global google var missing. Did you forget to include the places API script?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Lazy-Loaded Website Content | Google Search Central
Deferring loading of non-critical or non-visible content, also commonly known as "lazy loading", is a common performance and UX best practice.
Read more >
Browser-level image lazy loading for the web - web.dev
This post covers the loading attribute and how it can be used to control the loading of images.
Read more >
Google details how to set up lazy loading for best SEO results
An example of how lazy loading works, courtesy of Google. Medium uses light placeholder images at page load, but replaces them with full ......
Read more >
What Is Lazy Loading? Understanding Lazy Loading for SEO
Lazy loading, in a nutshell, allows you to defer slow-loading page elements until after your page has rendered. It's a way of making...
Read more >
How to Set Up Lazy Loading for Optimal SEO Results - WebFX
With lazy loading, your website gradually loads as someone engages with your site. It will load the top half your page and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found