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

Compatibility with JetPack Lazy Load Images #68

Open
kimcoleman opened this issue Jan 25, 2023 · 0 comments
Open

Compatibility with JetPack Lazy Load Images #68

kimcoleman opened this issue Jan 25, 2023 · 0 comments

Comments

@kimcoleman
Copy link
Member

Describe the bug
When a site is using JetPack to Lazy Load images, the map does not consistently render.

To Reproduce
Activate Membership Maps and JetPack. Ensure the Lazy Load Images feature is enabled.

  1. View your map as a non-member / visitor
  2. The map inconsistently renders.

JetPack has a filter you can use to set an array of CSS class selectors that SHOULD NOT be lazy loaded. We should test and figure out the best selector to use here (it may be the map container

or we may need to narrow in on the CSS selector that gets rendered by Google Maps API).

See: https://developer.jetpack.com/hooks/jetpack_lazy_images_blocked_classes/ and https://jetpack.com/support/lazy-images/

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

1 participant