What are Web Fragments?
mainWeb Fragments is a framework, tooling, and platform-agnostic architecture for building micro-frontends. It provides a way to containerize web frontends on both the client-side and server-side, similar to how Docker containerizes applications.
Key features include:
- Isolation: Micro-frontends are isolated from each other by executing their client-side JavaScript in separate JavaScript contexts.
- Cohesion: Despite execution isolation, fragments share the same DOM document, browser navigation, and history, allowing them to form a single, cohesive user experience.
- Scalability: Enables decomposing monolithic frontends into independently developed and released micro-frontends.
- Incremental Modernization: Supports low-risk, incremental migration and re-platforming of existing applications.