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

Js bottom loading #28

Open
Sogl opened this issue Jan 11, 2018 · 4 comments
Open

Js bottom loading #28

Sogl opened this issue Jan 11, 2018 · 4 comments

Comments

@Sogl
Copy link

Sogl commented Jan 11, 2018

Hello!

My map isn't working because I use minify and bottom loading, but this plugin loads js files into head section.
What I see in console:
image

How to solve?

@thgh
Copy link

thgh commented Jan 12, 2018

@Sogl
Copy link
Author

Sogl commented Jan 12, 2018

@thgh I don't see jQuery there... how it works?

@thgh
Copy link

thgh commented Jan 15, 2018

The issue you're having is that the Maps SDK is loading async, but when minifying it's included as first script because Grav plugins run before rendering the page.
The solution is to not load the Maps SDK from the plugin, but from the template instead (like the other scripts).

@Sogl
Copy link
Author

Sogl commented Feb 28, 2018

@salgua @bivainis Devs please

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