Optimize the `bento.js` shared dependency bundle
See original GitHub issuesummary
bento.js
is a new binary containing dependencies which all of the bento extensions depend on (1). Things like Preact and PreactBaseElement. We should optimize this bundle to be as small as possible.
source-map-explorer
starting size: 17.62 kb brotli, 54.93 kb uncompressed goal: < 10 kb brotli
opportunities
- (S) minimize cost of
preact/compt
: ~1.65 - (S) parseProps
- (S) CE Polyfill ~1.5
- (L) minimize or remove Context: ~3kb
- your idea here
cc @ampproject/wg-performance / @ampproject/wg-bento / @ampproject/wg-components
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Improving JavaScript Bundle Performance With Code-Splitting
Audit the site using bundle analyzer and browser performance profiler, and identify larger components and bundles that take the most time to ...
Read more >5 Methods to Reduce JavaScript Bundle Size - Bits and Pieces
This analysis provides a clear picture of each library used in your project and how they affect the JavaScript bundle size.
Read more >How To Optimize Your Next.js Production Build
1. Run the following command to add this package. npm install @next/bundle-analyzer cross-env 2. Next Bundle Analyzer works with the next build command....
Read more >BentoML
Tip: BentoML provides lots of build options in bentofile.yaml for customizing the Python dependencies, cuda installation, docker image distro, etc.
Read more >MITLibraries/bento - GitHub
MIT Bento aims to search multiple data sources and return a summary of results to aid a user towards a successful discovery experience....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
bento.mjs
is at 15.03 kb after recent changes to remove:forwardRef
createPortal
@rcebulko It’s stripped out from the module build.