Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better chunking to reduce asset sizes #374

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Jul 21, 2023

  • Splits out some dependencies from the vendor chunk
  • moves JSZip and AWS SDK to dynamic imports to reduce initial download size

Before:

✓ 1873 modules transformed.
dist/index.html                                1.05 kB │ gzip:   0.51 kB
dist/assets/KitwareHeadAndNeck-6fe4377e.jpg   27.03 kB
dist/assets/pipeline.worker-9f119a72.js       42.50 kB
dist/assets/async.writer.worker-42a67950.js  694.75 kB
dist/assets/async.reader.worker-f0ea3ad1.js  745.69 kB
dist/assets/vendor-4522082c.css               12.87 kB │ gzip:   2.06 kB
dist/assets/index-1e904cb7.css                23.05 kB │ gzip:   3.73 kB
dist/assets/vuetify-e8664618.css             359.80 kB │ gzip:  44.84 kB
dist/assets/vuetify-c3068a37.js              208.00 kB │ gzip:  66.06 kB │ map:   832.09 kB
dist/assets/index-3918bbaa.js                295.06 kB │ gzip: 103.59 kB │ map: 1,010.02 kB
dist/assets/vtk.js-053a3c9f.js               819.51 kB │ gzip: 210.78 kB │ map: 3,026.10 kB
dist/assets/vendor-c87afde9.js               923.37 kB │ gzip: 273.60 kB │ map: 3,880.06 kB

After:

✓ 1875 modules transformed.
dist/index.html                                1.20 kB │ gzip:   0.54 kB
dist/assets/KitwareHeadAndNeck-6fe4377e.jpg   27.03 kB
dist/assets/pipeline.worker-9f119a72.js       42.50 kB
dist/assets/async.writer.worker-42a67950.js  694.75 kB
dist/assets/async.reader.worker-f0ea3ad1.js  745.69 kB
dist/assets/vendor-4522082c.css               12.87 kB │ gzip:   2.06 kB
dist/assets/index-1e904cb7.css                23.05 kB │ gzip:   3.73 kB
dist/assets/vuetify-e8664618.css             359.80 kB │ gzip:  44.84 kB
dist/assets/lazyJSZip-12894b61.js             97.10 kB │ gzip:  30.04 kB │ map:   225.74 kB
dist/assets/lazyAwsSdk-b380c68e.js           176.28 kB │ gzip:  46.58 kB │ map: 1,034.05 kB
dist/assets/vuetify-a9c1303b.js              208.00 kB │ gzip:  66.06 kB │ map:   832.09 kB
dist/assets/whatwg-url-b9537523.js           244.18 kB │ gzip:  70.41 kB │ map:   233.88 kB
dist/assets/index-7a6822ef.js                295.69 kB │ gzip: 103.85 kB │ map:   988.99 kB
dist/assets/vtk.js-opengl-ebfe7419.js        312.07 kB │ gzip:  72.43 kB │ map:   889.49 kB
dist/assets/vendor-feed69ad.js               404.05 kB │ gzip: 126.41 kB │ map: 2,374.15 kB
dist/assets/vtk.js-350e3cce.js               508.24 kB │ gzip: 136.44 kB │ map: 2,132.17 kB

- Lazy load AWS SDK and JSZip
- Chunk out whatwg-url and vtk.js OpenGL
@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 7694784
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/64babf62173d72000843909e
😎 Deploy Preview https://deploy-preview-374--volview-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@floryst floryst changed the base branch from main to proposal/data-security-more-info July 21, 2023 17:25
Base automatically changed from proposal/data-security-more-info to main July 21, 2023 17:39
@floryst floryst marked this pull request as ready for review July 21, 2023 17:39
@floryst floryst marked this pull request as draft July 27, 2023 13:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant