Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the amount of icons in page data #49

Open
dmihal opened this issue Aug 16, 2022 · 0 comments
Open

Reduce the amount of icons in page data #49

dmihal opened this issue Aug 16, 2022 · 0 comments

Comments

@dmihal
Copy link
Owner

dmihal commented Aug 16, 2022

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.

@dmihal dmihal changed the title Reduce the Reduce the amount of icons in page data Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant