# Aurelia 2 bundling portions of application

**URL:** <https://discourse.aurelia.io/t/aurelia-2-bundling-portions-of-application/3579>\
**Category:** vNext\
**Created:** [June 17, 2020, 5:46am UTC](https://discourse.aurelia.io/t/aurelia-2-bundling-portions-of-application/3579 "2020-06-17T05:46:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fkleuver](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/fkleuver/32/994_2.png) [@fkleuver](https://discourse.aurelia.io/u/fkleuver)\
**Post date:** [June 23, 2020, 11:40am UTC](https://discourse.aurelia.io/t/aurelia-2-bundling-portions-of-application/3579/6 "2020-06-23T11:40:03Z")

</div>

The 2 main API surfaces for lazy loading in au2 are:

- Dynamic composition (e.g. passing the promise from `import('./my-module.js')` to `<au-compose>`)
- Routing (either manually dynamically loading a module and passing it into the router, or having lazy loaded child routes (API for this still in progress))

What’s the benefit of lazy loaded global resources instead of lazy loaded scoped resources though? Assuming bundlers take care of the same module only being loaded once…

---

_[View the full topic](https://discourse.aurelia.io/t/aurelia-2-bundling-portions-of-application/3579)._
