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

[Bug] excessive loading of SVG images #12716

Open
3 tasks done
vakha30 opened this issue May 12, 2024 · 0 comments
Open
3 tasks done

[Bug] excessive loading of SVG images #12716

vakha30 opened this issue May 12, 2024 · 0 comments
Labels

Comments

@vakha30
Copy link

vakha30 commented May 12, 2024

Prerequisites

  • I searched for any existing report about this bug to avoid opening a duplicate.
  • I can reproduce this bug in a new, unmodified web browser profile with Dark Reader installed as the only extension.
  • I understand I need to use the Broken Website Report template if this bug I am reporting occurs on a single website.

Bug Description

When creating a React application and subsequently importing the CSS library flag-icons using the following lines:

import 'flag-icons/css/flag-icons.min.css';

An issue has been identified when the Dark Reader plugin is activated in the browser. As a result of the plugin activation, there is an excessive loading of SVG flag images, which can significantly increase the page load time and resource consumption.

Website Address

any

Steps To Reproduce

1. Create a new React application.
2. Import the CSS library flag-icons using the specified lines.
3. Activate the Dark Reader plugin in the browser.
4. Note the excessive loading of SVG flag images (DevTools).   

Expected Behavior

It is expected that when the Dark Reader plugin is activated in the browser, there will be no excessive loading of SVG flag images, which will help reduce page load time and optimize resource usage.

Actual Behavior

Currently, when the Dark Reader plugin is activated in the browser after importing the flag-icons CSS library, there is a noticeable increase in the number of SVG flag images being loaded on the page.

Screenshots

image

Operating System

Linux

Web Browser name and version

Google Chrome 124.0.6367.155

Dark Reader version

4.9.84

Additional Context

https://codesandbox.io/p/devbox/6rvvry?file=%2Fsrc%2FApp.tsx%3A5%2C11

@vakha30 vakha30 added the bug label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant