Closed sxlwar closed 2 years ago
Page Size First Load JS
apps: ┌ λ / 241 kB 1.45 MB
apps: ├ /_app 0 B 1.21 MB
apps: ├ ○ /404 284 B 1.21 MB
apps: ├ ○ /500 289 B 1.21 MB
apps: ├ λ /api/hello 0 B 1.21 MB
apps: ├ ● /apps 11 kB 1.22 MB
apps: ├ └ css/8b29d979f6c251fe.css 147 B
apps: ├ λ /transaction 66.7 kB 1.28 MB
apps: ├ └ css/54033a82d6c79f4a.css 5.34 kB
apps: ├ λ /transaction/cbridge/[id] 682 B 1.23 MB
apps: ├ λ /transaction/s2dvm/[id] 723 B 1.23 MB
apps: ├ λ /transaction/s2parachain/[id] 686 B 1.23 MB
apps: ├ λ /transaction/s2s/[id] 714 B 1.23 MB
apps: ├ λ /transaction/s2sv2/[id] 699 B 1.23 MB
apps: └ λ /transaction/xcm/[id] 598 B 1.23 MB
apps: + First Load JS shared by all 1.21 MB
apps: ├ chunks/framework-9de8fade601d6062.js 45 kB
apps: ├ chunks/main-fedbb77d25194085.js 27.1 kB
apps: ├ chunks/pages/_app-fd86b0b58fab8d61.js 1.14 MB
apps: ├ chunks/webpack-84152764bed3ae7f.js 2.15 kB
apps: └ css/036f4f98ffb4e8f6.css 549 kB
apps: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
apps: ○ (Static) automatically rendered as static HTML (uses no initial props)
apps: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
lerna success run Ran npm script 'build' in 1 package in 79.2s:
lerna success - apps
✨ Done in 80.24s.
Refactored bridge component loading strategy
Page Size First Load JS
┌ λ / 245 kB 1.12 MB
├ └ css/b993051e0ab3fae2.css 1 kB
├ /_app 0 B 874 kB
├ ○ /404 284 B 874 kB
├ ○ /500 289 B 874 kB
├ λ /api/hello 0 B 874 kB
├ ● /apps 215 kB 1.13 MB
├ └ css/0178c0ace08d918f.css 16.1 kB
├ λ /transaction 68.4 kB 976 kB
├ └ css/fdd47b9eb3b4ca42.css 5.33 kB
├ λ /transaction/cbridge/[id] 686 B 894 kB
├ λ /transaction/s2dvm/[id] 726 B 894 kB
├ λ /transaction/s2parachain/[id] 692 B 894 kB
├ λ /transaction/s2s/[id] 719 B 894 kB
├ λ /transaction/s2sv2/[id] 703 B 894 kB
└ λ /transaction/xcm/[id] 601 B 894 kB
+ First Load JS shared by all 874 kB
├ chunks/framework-9de8fade601d6062.js 45 kB
├ chunks/main-fedbb77d25194085.js 27.1 kB
├ chunks/pages/_app-183389991bdcb076.js 799 kB
├ chunks/webpack-2bcd5b9e22754654.js 2.56 kB
└ css/b06fe8853bfe1b4f.css 504 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
✨ Done in 72.79s.
apps: Page Size First Load JS
apps: ┌ λ / 241 kB 2.13 MB
apps: ├ /_app 0 B 1.89 MB
apps: ├ ○ /404 284 B 1.89 MB
apps: ├ ○ /500 289 B 1.89 MB
apps: ├ λ /api/hello 0 B 1.89 MB
apps: ├ ● /apps 11 kB 1.9 MB
apps: ├ └ css/8b29d979f6c251fe.css 147 B
apps: ├ λ /transaction 66.7 kB 1.96 MB
apps: ├ └ css/54033a82d6c79f4a.css 5.34 kB
apps: ├ λ /transaction/cbridge/[id] 682 B 1.9 MB
apps: ├ λ /transaction/s2dvm/[id] 723 B 1.9 MB
apps: ├ λ /transaction/s2parachain/[id] 686 B 1.9 MB
apps: ├ λ /transaction/s2s/[id] 714 B 1.9 MB
apps: ├ λ /transaction/s2sv2/[id] 699 B 1.9 MB
apps: └ λ /transaction/xcm/[id] 598 B 1.9 MB
apps: + First Load JS shared by all 1.89 MB
apps: ├ chunks/framework-9de8fade601d6062.js 45 kB
apps: ├ chunks/main-fedbb77d25194085.js 27.1 kB
apps: ├ chunks/pages/_app-6ca36e846b54efe1.js 1.82 MB
apps: ├ chunks/webpack-a072d69898c22423.js 2.14 kB
apps: └ css/036f4f98ffb4e8f6.css 549 kB
apps: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
apps: ○ (Static) automatically rendered as static HTML (uses no initial props)
apps: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
lerna success run Ran npm script 'build' in 1 package in 95.0s:
lerna success - apps
✨ Done in 95.55s.
branch | packaging time | first load js | first load js shared |
---|---|---|---|
bundle_optimize (web3_1.7.3) | 180.96s | 2.25Mb | 2.01MB |
bundle_optimize_ethers | 80.24s | 1.45Mb | 1.21MB |
bundle_optimize_web3_1.5.3 | 95.55s | 2.13Mb | 1.89MB |
bundle_optimize_ethers (lazyload bridge components) | 72.79s | 1.12Mb | 874K |
bundle_optimize_ethers finialize | 54.88s | 1.06Mb | 809K |
crush lodash
Page Size First Load JS
┌ λ / 244 kB 1.1 MB
├ └ css/b993051e0ab3fae2.css 1 kB
├ /_app 0 B 852 kB
├ ○ /404 284 B 853 kB
├ ○ /500 289 B 853 kB
├ λ /api/hello 0 B 852 kB
├ ● /apps 215 kB 1.1 MB
├ └ css/0178c0ace08d918f.css 16.1 kB
├ λ /transaction 68.4 kB 954 kB
├ └ css/fdd47b9eb3b4ca42.css 5.33 kB
├ λ /transaction/cbridge/[id] 686 B 872 kB
├ λ /transaction/s2dvm/[id] 726 B 872 kB
├ λ /transaction/s2parachain/[id] 692 B 872 kB
├ λ /transaction/s2s/[id] 719 B 872 kB
├ λ /transaction/s2sv2/[id] 703 B 872 kB
└ λ /transaction/xcm/[id] 601 B 872 kB
+ First Load JS shared by all 852 kB
├ chunks/framework-9de8fade601d6062.js 45 kB
├ chunks/main-fedbb77d25194085.js 27.1 kB
├ chunks/pages/_app-e4369f3e98f76d8a.js 778 kB
├ chunks/webpack-584faa1bb01e6da9.js 2.56 kB
└ css/b06fe8853bfe1b4f.css 504 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
✨ Done in 71.39s
css bundle
before
Permissions Size User Date Modified Name
.rw-r--r-- 137k shaoxuelei 8 9 09:50 0178c0ace08d918f.css
.rw-r--r-- 44k shaoxuelei 8 9 09:50 9ae56f4e40ded70a.css
.rw-r--r-- 238 shaoxuelei 8 9 09:50 670e385b57114c91.css
.rw-r--r-- 6.2M shaoxuelei 8 9 09:50 b06fe8853bfe1b4f.css
.rw-r--r-- 3.5k shaoxuelei 8 9 09:50 b993051e0ab3fae2.css
.rw-r--r-- 5.0k shaoxuelei 8 9 09:50 dea6091200bdb1c8.css
.rw-r--r-- 38k shaoxuelei 8 9 09:50 fdd47b9eb3b4ca42.css
updated
Permissions Size User Date Modified Name
.rw-r--r-- 137k shaoxuelei 8 9 13:53 43db6ac675dadbc1.css
.rw-r--r-- 238 shaoxuelei 8 9 13:53 670e385b57114c91.css
.rw-r--r-- 199k shaoxuelei 8 9 13:53 173320d99661c452.css
.rw-r--r-- 3.5k shaoxuelei 8 9 13:53 b993051e0ab3fae2.css
.rw-r--r-- 38k shaoxuelei 8 9 13:53 bd4729d00582d7f1.css
.rw-r--r-- 5.0k shaoxuelei 8 9 13:53 dea6091200bdb1c8.css
.rw-r--r-- 44k shaoxuelei 8 9 13:53 e9c4ec35dd62b5bb.css
The End
Page Size First Load JS
┌ λ / 244 kB 1.06 MB
├ └ css/b993051e0ab3fae2.css 1 kB
├ /_app 0 B 809 kB
├ ○ /404 284 B 809 kB
├ ○ /500 289 B 809 kB
├ λ /api/hello 0 B 809 kB
├ ● /apps 52.3 kB 875 kB
├ └ css/7908c4bbb7f61013.css 14.3 kB
├ λ /transaction 98.8 kB 924 kB
├ ├ css/3d42f7af571b1189.css 3.73 kB
├ └ css/a275f55dc8670fff.css 6.89 kB
├ λ /transaction/cbridge/[id] 684 B 828 kB
├ λ /transaction/s2dvm/[id] 729 B 828 kB
├ λ /transaction/s2parachain/[id] 690 B 828 kB
├ λ /transaction/s2s/[id] 717 B 828 kB
├ λ /transaction/s2sv2/[id] 701 B 828 kB
└ λ /transaction/xcm/[id] 600 B 828 kB
+ First Load JS shared by all 809 kB
├ chunks/framework-9de8fade601d6062.js 45 kB
├ chunks/main-fedbb77d25194085.js 27.1 kB
├ chunks/pages/_app-bf33c4da6e4140a1.js 734 kB
├ chunks/webpack-abbf01b6bb144ea1.js 2.8 kB
└ css/d5ea5910bb7cfff0.css 22.5 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
✨ Done in 54.88s.
Now, the biggest impact on package size is Polkadot-js, see https://github.com/polkadot-js/api/issues/5209
Dashboard
Apps
More network requests on the dashboard result in a lower score than the apps page, even though the size of apps is much larger than the homepage
Topic
Code
Description
helix
apps
merged apps