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

dynamic importを使ってコードの肥大化に立ち向かう #14

Open
ncaq opened this issue Dec 27, 2018 · 4 comments
Open

dynamic importを使ってコードの肥大化に立ち向かう #14

ncaq opened this issue Dec 27, 2018 · 4 comments
Labels
Type: Question Further information is requested Type: Refactoring A code change that neither fixes a bug nor adds a feature

Comments

@ncaq
Copy link
Owner

ncaq commented Dec 27, 2018

code splittingをしてブラウザの言語によってdynamic importをすればファイルの肥大化に耐えられるのではないか

@ncaq ncaq added the clean label Jan 15, 2019
@ncaq ncaq added Type: Question Further information is requested Type: Refactoring A code change that neither fixes a bug nor adds a feature and removed clean labels Mar 12, 2019
@ncaq
Copy link
Owner Author

ncaq commented May 2, 2019

Firefox 66 https://caniuse.com/#feat=es6-module-dynamic-import がフラグなしで対応してなかった…
ネイティブサポートしてないと分割できない(はず)のでひとまず後ですね

@ncaq
Copy link
Owner Author

ncaq commented Aug 27, 2019

10月からFirefox 68がLTSになるのでそしたら使えそうですが,
ローカルのJavaScriptファイルが大きくなってもそんなに問題ないのではとも思えてきました

@ncaq
Copy link
Owner Author

ncaq commented Feb 4, 2023

全てのサイトで読み込むならともかく、
全てのサイトに対応するのではなく、ドメインを絞って対応する · Issue #75 · ncaq/goodbye-rfc-2822-date-time
をしている限りあまり気にする必要はないのでは。

@ncaq
Copy link
Owner Author

ncaq commented Aug 5, 2023

全体的に読み込みむかを変えるぐらいはしても良いかもしれません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested Type: Refactoring A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

No branches or pull requests

1 participant