actions / github-script

Write workflows scripting the GitHub API in JavaScript
MIT License
4.24k stars 424 forks source link

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

Open vikramAkram opened 1 month ago

vikramAkram commented 1 month ago

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