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

Assets are loaded on Woo pages #270

Open
danielsmwp opened this issue Jul 9, 2024 · 0 comments
Open

Assets are loaded on Woo pages #270

danielsmwp opened this issue Jul 9, 2024 · 0 comments

Comments

@danielsmwp
Copy link

Hey Omniva team,

Following assets are loaded on product category and product single pages:

  • omnivalt-library-mapping-css
  • omnivalt-library-leaflet-css
  • omnivalt-block-frontend-checkout
  • omnivalt-library-mapping-js
  • omnivalt-library-leaflet-js

For optimization purposes, they could be omitted from loading if they are not used on the page. There are no need to load these assets as they are suppose to execute logic related to checkout/cart pages.

This is related to Omniva Gutenberg Block integration, I am not using Gutenberg editor on the site where the issue is happening.

Would be good if we could have a switchable constant or filter to disable this part of functionality.

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