Skip to content

Optimize bundle size #179

Description

@oskarrough

Our JavaScript for the components is 1.5mb. Considering we don't even have a framework™️ it's a lot.

dist/index-Dv1Vd9fA.js             1,499.01 kB │ gzip: 357.64 kB

However most of it is the dependency on ol (for the map) as far as I know.

The site is definitely not slow even with the big bundle. It's cached. But we could still try to 1) reduce the size 2) split the big dependencies into other bundles? Like only load ol once the r4-map component is connected. But don't know how that would work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions