Skip to content

Using icon libraries cause massive increases to build time #12793

Open
@OiYouYeahYou

Description

Astro Info

Astro                    v5.0.9
Node                     v23.3.0
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Using icon libraries* increases build times by factors of seconds. The worst culprit being a 3,166,940% increase on page reloads in dev mode

Build (total time score) Average Page Load **
Clean 1.57s 5.2 ms
Importing 12.81s 16,4686 ms

I've also raised this issue in 2 icon libraries:

* and probably other types of libs, but I've not tested any others
** User hand refreshed consecutively

What's the expected result?

For the build command, I'm less concerned

For the dev command and single page refreshes, I expect the load time to be sub second, not tens of seconds like the repro and other projects

Link to Minimal Reproducible Example

https://github.com/oy3-archive/astro-dep-perf

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Assignees

No one assigned

    Labels

    - P2: has workaroundBug, but has workaround (priority)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions