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

Decrease first load JS size shared by all #19

Open
btalb opened this issue Mar 3, 2022 · 0 comments
Open

Decrease first load JS size shared by all #19

btalb opened this issue Mar 3, 2022 · 0 comments

Comments

@btalb
Copy link
Collaborator

btalb commented Mar 3, 2022

Currently it is heavier than it should be (~223kB).

Here's a sample output:

ben@ben-meshify:~/qut/repos/qcr.github.io$ npm run build

> [email protected] build
> npm run build_loaders && next build


> [email protected] build_loaders
> npx tsc -p lib/loaders/

info  - Checking validity of types  
info  - Creating an optimized production build  
info  - Compiled successfully
info  - Collecting page data  
info  - Generating static pages (65/65)
info  - Finalizing page optimization  

Page                                        Size     First Load JS
┌ ● / (1280 ms)                             1.54 kB         225 kB
├   /_app                                   0 B             223 kB
├ ● /[list]                                 1.13 kB         224 kB
├   ├ /code
├   ├ /dataset
├   └ /collection
├ ○ /404                                    194 B           223 kB
├ ● /code/[code] (696 ms)                   1.87 kB         225 kB
├   ├ /code/armer
├   ├ /code/benchbot-addons
├   ├ /code/benchbot-api
├   └ [+27 more paths]
├ ● /collection/[collection] (1741 ms)      1.99 kB         225 kB
├   ├ /collection/python_robotics (522 ms)
├   ├ /collection/human-cues (502 ms)
├   ├ /collection/benchbot (497 ms)
├   ├ /collection/rt_gene_overview
├   └ /collection/vpr_overview
└ ● /dataset/[dataset] (372 ms)             2.34 kB         225 kB
    ├ /dataset/benchbot-bear-data
    ├ /dataset/alderly
    ├ /dataset/cbd-and-highway
    └ [+21 more paths]
+ First Load JS shared by all               223 kB
  ├ chunks/framework-5f4595e5518b5600.js    42 kB
  ├ chunks/main-c3b6816b38c7fbf8.js         27.7 kB
  ├ chunks/pages/_app-948f0301eb21e843.js   152 kB
  ├ chunks/webpack-c491b2a411a4f8fa.js      972 B
  └ css/f412908a832d0896.css                23.4 kB

○  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)

Need to look at bringing this down (use @next/bundle-analyzer and have a look at the client bundle HTML).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant