# Loading js libraries via register\_asset

**URL:** <https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003>\
**Category:** Development\
**Created:** [June 26, 2020, 9:12am UTC](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003 "2020-06-26T09:12:39Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [July 2, 2020, 5:10pm UTC](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003/9 "2020-07-02T17:10:20Z")

</div>

> [@eviltrout](#):
>
> I understand that’s not ideal but I also don’t think libraries should normally be distributed without some kind of support for modules (for example, UMD.)

Yes, I agree. Many of them are distributed that way and those work seamlessly. Thanks for looking into this and for the confirmation 👍 I went the route of packaging the library via webpack and it works without even importing. I should have tested in production mode though.

---

_[View the full topic](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003)._
