Measure the client bundle and lazy-load heavy dependencies where it helps

オープン
#151 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nextjs, typescript

調査の方向性

Start with web/next.config.mjs and web/package.json to see how the build is configured, then trace how web/lib/contract.ts is imported by the pages. Add @next/bundle-analyzer behind an opt-in analyze script and record first-load sizes per route before changing anything. Done means the script is documented, before and after sizes are in the PR, and the build still passes with no behaviour change.

索引モデルが issue の本文から書いたものです。

説明

difficulty: intermediate help wanted performance web

Difficulty: Intermediate

Problem

@stellar/stellar-sdk is large, and several pages import it through lib/contract.ts. Nobody has measured the route bundles, so it is unknown whether any route ships more JavaScript than it needs.

Why it matters

Users on mobile data in the target market pay for every kilobyte.

Scope of work

Add @next/bundle-analyzer behind an opt-in script, record the first-load size of each route, and lazy-load heavy code (dynamic imports) only where the measurement shows a clear win. Document the numbers.

Expected outcome

A documented baseline and, if justified, measurable reductions on affected routes.

Acceptance criteria

  • An analyze script exists and is documented.
  • Before and after sizes are in the PR.
  • No behaviour change, and the build passes. A "no change needed" conclusion with data is acceptable.

Relevant files

  • web/next.config.mjs, web/package.json, web/lib/contract.ts

Dependencies

None.

Maintainer discussion needed?

No.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。