# Conditionally loading JS libraries

**URL:** <https://forum.elixirforum.com/t/conditionally-loading-js-libraries/68894>\
**Category:** Questions\
**Tags:** phoenix, liveview, hooks\
**Created:** [January 21, 2025, 3:43pm UTC](https://forum.elixirforum.com/t/conditionally-loading-js-libraries/68894 "2025-01-21T15:43:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Liam\_or](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/l/8e7dd6/32.png) [@Liam\_or](https://forum.elixirforum.com/u/Liam_or)\
**Post date:** [January 22, 2025, 2:22pm UTC](https://forum.elixirforum.com/t/conditionally-loading-js-libraries/68894/3 "2025-01-22T14:22:50Z")

</div>

Thanks. I believe Liveview uses default ESbuild. So to allow lazy loading perhaps it needs tinkering with?

---

_[View the full topic](https://forum.elixirforum.com/t/conditionally-loading-js-libraries/68894)._
