serlo / frontend

Next.js app that serves serlo.org
https://serlo.org
Apache License 2.0
39 stars 10 forks source link

refactor: `UuidContext` and `ExerciseContext` #3852

Closed LarsTheGlidingSquirrel closed 2 months ago

LarsTheGlidingSquirrel commented 3 months ago

Based on https://github.com/serlo/frontend/pull/3759 and https://github.com/serlo/frontend/pull/3754

Before:

Changes:

Followups:

Demo:

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview Jun 13, 2024 10:39am
github-actions[bot] commented 3 months ago

📦 Next.js Bundle Analysis for @serlo/frontend

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Thirty-three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/[...slug] 82 KB (🟡 +133 B) 185.86 KB
/___bot_or_not 95.66 KB (🟡 +1 B) 199.51 KB
/___editor_preview 484.71 KB (🟢 -81 B) 588.56 KB
/auth/___activate_vidis 37.67 KB (🟢 -67 B) 141.53 KB
/auth/login 88.66 KB (🟢 -69 B) 192.51 KB
/auth/oauth/login 88.67 KB (🟢 -69 B) 192.52 KB
/auth/recovery 70.16 KB (🟢 -69 B) 174.01 KB
/auth/registration 71.08 KB (🟢 -69 B) 174.94 KB
/auth/settings 71.18 KB (🟢 -69 B) 175.04 KB
/auth/verification 70.5 KB (🟢 -69 B) 174.35 KB
/biologie 157.37 KB (🟡 +9 B) 261.22 KB
/chemie 157.37 KB (🟡 +9 B) 261.22 KB
/content-only/[...slug] 74.43 KB (🟡 +133 B) 178.28 KB
/discussions 95.87 KB (-1 B) 199.73 KB
/editor 105.57 KB (🟡 +1 B) 209.42 KB
/entity/create/[type]/[taxonomyId] 486.1 KB (🟢 -74 B) 589.95 KB
/entity/repository/add-revision/[...id] 485.38 KB (🟢 -89 B) 589.24 KB
/entity/repository/compare/[entity_id]/[revision_id] 85.74 KB (🟡 +1 B) 189.59 KB
/event/history 130.93 KB (🟡 +8 B) 234.78 KB
/event/history/[...slug] 131.9 KB (🟡 +8 B) 235.76 KB
/event/history/user/profile/[username] 134.29 KB (🟡 +8 B) 238.14 KB
/informatik 157.37 KB (🟡 +9 B) 261.22 KB
/lerntipps 157.37 KB (🟡 +9 B) 261.22 KB
/license/detail/[id] 57.81 KB (🟡 +1 B) 161.67 KB
/mathe 157.37 KB (🟡 +9 B) 261.22 KB
/nachhaltigkeit 157.37 KB (🟡 +9 B) 261.23 KB
/page/create 485.39 KB (🟢 -72 B) 589.25 KB
/subscriptions/manage 113.69 KB (🟡 +8 B) 217.54 KB
/taxonomy/term/create/[parent_id]/[id] 485.16 KB (🟢 -64 B) 589.01 KB
/taxonomy/term/update/[id] 485.1 KB (🟢 -77 B) 588.95 KB
/user/notifications 133.19 KB (🟡 +8 B) 237.04 KB
/user/profile/[username] 177.2 KB (🟡 +9 B) 281.05 KB
/user/settings 484.05 KB (🟢 -85 B) 587.9 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.