Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Conversation

@lkol
Copy link
Contributor

@lkol lkol commented Jul 16, 2016

Placing the script tag in document body causes the Google Maps API to be included multiple times
when document is stored using the History API and then later retrieved (e.g. when using
Turbolinks.js). Placing the script tag inside head element solves this problem, ensuring the Google
Maps API is loaded only once.

… head element instead of body

Placing the script tag in document body causes the Google Maps API to be included multiple times
when document is stored using the History API and then later retrieved (e.g. when using
Turbolinks.js). Placing the script tag inside head element solves this problem, ensuring the Google
Maps API is loaded only once.
@lkol lkol changed the title fix(map-loader): change includeScript to place maps api script tag to… fix(map-loader): change includeScript to place maps api script tag to head element instead of body Jul 16, 2016
@nmccready
Copy link
Contributor

LGTM

@nmccready nmccready merged commit f30e8b4 into angular-ui:master Aug 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants