# Lazy loading

**URL:** <https://community.dynatrace.com/t/lazy-loading/35763>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app\
**Created:** [July 6, 2022, 1:22pm UTC](https://community.dynatrace.com/t/lazy-loading/35763 "2022-07-06T13:22:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [July 6, 2022, 1:22pm UTC](https://community.dynatrace.com/t/lazy-loading/35763/1 "2022-07-06T13:22:37Z")

</div>

Hi all, I’m trying to use dynamic imports to lazy load a library. But dt-app bundles this file in main.js. Is this known behavior? If so, can we actually change it somehow to split the code? esbuild(which is I guess the tool under\_the\_hood) allows automatic code splitting for dynamic imports

---

<div class="post-metadata">

**Author:** ![imsingh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imsingh/32/7858_2.png) [@imsingh](https://community.dynatrace.com/u/imsingh)\
**Post date:** [July 6, 2022, 1:34pm UTC](https://community.dynatrace.com/t/lazy-loading/35763/2 "2022-07-06T13:34:38Z")

</div>

At the moment, this is not supported. ESBuild has this feature but it is considered experimental currently.
