magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

[feature]: Module based chunking along with route based chunking. #1804

Open revanth0212 opened 4 years ago

revanth0212 commented 4 years ago

Is your feature request related to a problem? Please describe. Related to #1673 #1765 #1783

Describe the solution you'd like We can chunk the app based on its availability requirement in the app. For instance, the left drawer is needed in all the pages. We can separate out the left drawer or combine that with app shell and sever it as a bundle of its own so it should be cached on the UI and reused until something changes. Also, we can server render these bundles for better performance (if possible).

Please let us know what packages this feature is in regards to:

revanth0212 commented 4 years ago

This needs more research. Need to check on what Root Components Chunking is and how is that is related to what this issue addresses.

supernova-at commented 4 years ago

1765 introduced route-based code splitting.

Edit: Oh I see you've already linked it :P :)

revanth0212 commented 4 years ago

1765 introduced route-based code splitting.

Yeah, this adds chunking on top of what #1765 offers. #1765 already gives us a boost with a smaller client.js which can be broken up into even smaller chunks using module-based chunking.

cherdman commented 4 years ago

https://jira.corp.magento.com/browse/PWA-72

revanth0212 commented 4 years ago

This has a high workload. Removing from the Performance Milestone for now. Will revisit in the future.