-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
frontend: init.tsをmain-boot.ts/sub-boot.tsのように分ける #10838
Labels
Comments
syuilo
added
packages/frontend
Client side specific issue/PR
💚Refactor
Rewriting code without changing behavior
labels
May 12, 2023
Storybook の preview でやってるワークアラウンドが解決するような minimum boot があると嬉しい |
Viteで複数のエントリポイント(?)をビルドするように設定するのが面倒かも(そもそもできるのかしら) |
init.tsでは条件によってsub-boot.tsとmain-boot.tsをdynamic import&boot関数実行するだけにするとか? |
それでも良いか |
(Zen UIを考えた時、sub-bootにファイル分割して削ぎ落とせるものって少ない気がする…) |
dynamic importだとHTTPリクエストが1増えるから初回アクセス時の表示速度という観点では今より悪化するかも |
syuilo
added a commit
that referenced
this issue
May 15, 2023
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Summary
main-boot.tsはinit.tsと同様
sub-boot.tsはmain-bootを簡略化したもので、UIもZenUIにする
シェアページやMiAuth認証ページなどにアクセスされた際に、main-bootではなくsub-bootで読み込むことでパフォーマンスの向上やフルUIで開いてしまう問題を解決する
The text was updated successfully, but these errors were encountered: