Option for shared bundle to include just JS on all pages rather than >1
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 171
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
This issue is a:
- Feature suggestion
- Documentation issue
- Other (Please Specify)
Environment
| Question | Answer |
|---|---|
| Magento version | 2.3.3 |
| Browser + version | Chrome |
node.js version (node -v) |
|
npm version (npm -v) |
Description
Compared to my last build.js on 2.2.x found here https://github.com/antonkril/magento-rjs-config my pages seem large. May be missing something but wondering if an option for shared.js bundle to only include files on all pages may be better like above build.js. Checkout files end up in there as used in cart and checkout and that sort of thing and feel that main file would get considerably smaller.
Expected result:
Option available in dev tools to set the number of page types required for JS files to be included in the shared bundle as feel 2 or more is low and causes larger pages.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the current shared.js bundle behavior with the referenced build.js approach, then inspect the dev tools' existing bundle configuration entry points. Done means an option controls how many page types qualify JavaScript files for the shared bundle, with checkout-only files excluded when the threshold is raised.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100