Implement `@Chunk`
See original GitHub issueAs described in https://github.com/vaadin/flow/issues/5339 we should be able to produce chunks per each view.
Acceptance criteria
- Each route should produce a different
frontend/my-view.js
file - User should be able to merge multiple views in one chunk
- User should be able to disable chunking
- webpack
frontend/generated-flow-imports.js
should import all those fragments. - theme stuff should be in the
frontend/generated-flow-imports.js
file -
frontend/generated-flow-imports.js
should not load any chunk, but have a function reference so as server can do it - previously to visit a new view, it’s corresponding chunk should be loaded
- Documentation about customizing chunks should be updated
- Validate implementation in bakery
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Spring Batch - Tasklets vs Chunks - Baeldung
Learn about the two ways to implement jobs in Spring Batch: tasklets and chunks.
Read more >How Do I Chunk Content to Increase Learning?
Dividing your course content into manageable chunks helps students learn more ... Also, be sure to use regular formative assessment strategies such as...
Read more >Custom chunk implementation - filepond - Stack Overflow
I am trying to fit Filepond's chunk implementation to a third party upload endpoint that I don't have control over.
Read more >nltk.chunk package
RegexpChunkParser is an implementation of the chunk parser interface that uses regular-expressions over tags to chunk a text. Its parse() method first ...
Read more >Implementing ChunkDownloader Ingame
ChunkDownloader is a patching solution for Unreal Engine. It downloads assets from a remote service and mounts them in memory for use in...
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 FreeTop 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
Top GitHub Comments
If you need any info on module federation, let me know 😃
I would like to suggest one addition, unless it’s already implemented to deal with #5509: All
@JsImport
annotations that are on the classpath but not reachable through any@Chunk
should be included in a special fallback chunk, which is automatically loaded if that@JsImport
is actually encountered.What this means in practice is that any omissions wouldn’t cause a broken application, but only that the end user has to download an additional chunk that might be larger than necessary.