Lazy loading google
See original GitHub issueHi,
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:
- Created 8 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😉Had this been resolved? It works for me the first time I add the lib and serve. Then I get this issue:
Global
googlevar missing. Did you forget to include the places API script?