Skip to content

Reduce the amount of icons in page data #49

@dmihal

Description

@dmihal

The protocol pages are emitting the following errors when loading:

2022-08-16T17:21:58.970Z 2e531315-c95a-4db2-9ac0-9ec69cf5cf6d WARN Warning: data for page "/protocol/[id]" (path "/protocol/velodrome") is 941 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. See more info here: https://nextjs.org/docs/messages/large-page-data

Lots of the data included in pages is the base64-encoded icons, which are primarily used in the "compare" dropdown.

Instead of bundling these in the page data themselves, these should be included in a separate API that can be lazy-loaded and cached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions