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

Unexpected SVG Images Loaded After B2C Page Layout Version Upgrade #494

Open
vikramAkram opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@vikramAkram
Copy link

Describe the bug

After upgrading the B2C page layout to the latest version, we encountered an issue where SVG images are unexpectedly invoked and appear in the network requests, even though there are no console or type errors. This behavior occurs on page load, and these SVGs seem to be loading unnecessarily, impacting performance.

We have tried to address the issue by commenting out background images in the CSS and locally managing the images, but this would impact existing functionality. As of now, the exact cause behind this sudden invocation of SVGs after the upgrade remains unclear, and we need to investigate further.

To Reproduce

Steps to reproduce the behavior:

Upgrade the B2C page layout to the latest version.
Load the page in the browser and open developer tools to monitor network requests.
Observe the SVG images being loaded unexpectedly, despite no direct references in the UI code.

Expected behavior

SVG images should only load when explicitly called or referenced within the UI logic. No unexpected network requests for SVG images should be triggered on page load.

Screenshots

image

Additional context
We did not encounter this issue prior to the B2C page layout version upgrade. The issue likely stems from changes in the way the layout or scripts handle image loading, possibly involving background image calls in the CSS. Further investigation is needed to determine why these SVG images are being triggered unnecessarily

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