Skip to content

[Question] How to remove unused javascript in GatsbyJS? #24586

Description

@daydream05

Summary

The new Lighthouse added additional reccomendations such as
Remove unused javascript

How would I go about figuring out how to remove the unused javascript?

The report shows the path but they're all minified but I'm not sure how to get rid of them. (It looks a couple is Firebase)

I've deleted all unused imports but I still have a large chunk of unused js.

Relevant information

Here's the lighthouse report for the page in question:

Screen Shot 2020-05-28 at 5 14 29 PM

Gatsby site has also some unused js
Screen Shot 2020-05-28 at 5 18 08 PM

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions