# Common Chunk and Lazy Loading in Angular

DevFeed: [Common Chunk and Lazy Loading in Angular](<https://devfeed.tech/articles/common-chunk-and-lazy-loading-in-angular-21377.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2021/02/common-chunk-lazy-loading-angular-cli/>)

Published: 2021-02-17T00:00:00Z

Content type: article

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [lazy loading](<https://devfeed.tech/topics/lazy-loading.md>), [Angular](<https://devfeed.tech/topics/angular.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>), [Angular CLI](<https://devfeed.tech/topics/angular-cli.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [angular-elements](<https://devfeed.tech/tags/angular-elements.md>), [builder](<https://devfeed.tech/tags/builder.md>), [cli](<https://devfeed.tech/tags/cli.md>), [js](<https://devfeed.tech/tags/js.md>), [lazy-loading](<https://devfeed.tech/tags/lazy-loading.md>), [module](<https://devfeed.tech/tags/module.md>), [modules](<https://devfeed.tech/tags/modules.md>), [optimizations](<https://devfeed.tech/tags/optimizations.md>), [perf](<https://devfeed.tech/tags/perf.md>), [performance](<https://devfeed.tech/tags/performance.md>), [router](<https://devfeed.tech/tags/router.md>), [speed](<https://devfeed.tech/tags/speed.md>), [split](<https://devfeed.tech/tags/split.md>), [startup](<https://devfeed.tech/tags/startup.md>)

## AI overview

Angular Router lazy loading lets Webpack split code into bundles loaded as needed. By default, the Angular CLI places code shared by at least two locations into a common chunk, avoiding duplication; that chunk loads at startup and may affect startup speed. The excerpt says you can disable common chunk generation in the builder configuration when duplicating shared code across lazy-loaded bundles better fits your scenario, but advises choosing based on the specific situation. The excerpt does not include the exact configuration setting.

## Source excerpt

Lorem ipsum dolor sit amet