Skip to content

Icon: File size of research-tool icon is larger than expected #1136

@brentswisher

Description

@brentswisher

Expected behavior
Pharos icon should be performant with relatively small file sizes.

Actual behavior
The research-tool icon is over 1MB in size when loaded in the browser.

Steps to reproduce the issue

  1. Load the icon storybook page
  2. See that most icons are around 0.5-1 Kb
  3. See that the research tool icon is over 100Kb

Screenshots or code
I noticed this then running the webpack build analyzer on an MFE that uses Pharos, and the largest chunk in the whole repo was the research tool icon. 😳
Image

Glancing at the code it looks like maybe we are embedding an image in the svg which would explain the size, so may need some design help to get a true svg version of the icon
Image

Pharos version
14.21.0

Your environment

  • OS: MacOs
  • Browser: Chrome
  • Version: 142.0.7444.176

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions