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

Nuxt.com loads immense amounts of JSON #1538

Open
Artboomy opened this issue Mar 18, 2024 · 0 comments
Open

Nuxt.com loads immense amounts of JSON #1538

Artboomy opened this issue Mar 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Artboomy
Copy link

Problem

Two of the API requests, /search and /contributors, load around 16 MB of JSON in total. It may slow down the performance of the page

Steps to reproduce:

  1. Open Network tab
  2. Set Fetch/XHR filter
  3. Set "disable cache"
  4. Navigate to https://nuxt.com/
  5. Sort by request size

Actual result

https://nuxt.com/api/search.json endpoint returns 515 KB/12.5 MB compressed/uncompressed JSON data. It is not inspectable, Chrome refuses to show Response due to its size

https://api.nuxt.com/contributors returns 375 KB/ 3.7 MB compressed/uncompressed JSON data.
Result contains array of 22787 values. My guess this can be limited to 1000 at most,
Current grid of supporters on page shows 20 faces every 5 seconds. 1000 should suffice for 4 minutes spent on page.

image

Expected result

Only necessary data is sent to the page

@atinux atinux added the enhancement New feature or request label Mar 20, 2024 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants