# Как загрузить библиотеку в компонент темы

**URL:** <https://meta.discourse.org/t/how-to-load-library-in-a-theme-component/276621>\
**Category:** Development\
**Created:** [25.Август.2023 14:54:17 UTC](https://meta.discourse.org/t/how-to-load-library-in-a-theme-component/276621 "2023-08-25T14:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [25.Август.2023 18:30:01 UTC](https://meta.discourse.org/t/how-to-load-library-in-a-theme-component/276621/6 "2023-08-25T18:30:01Z")

</div>

> [@pfaffman](#):
>
> Возможно, мне нужно использовать `.then`, когда я пытаюсь использовать код позже?

Да, именно так. 👍. В моём примере всё работает именно так.

---

_[View the full topic](https://meta.discourse.org/t/how-to-load-library-in-a-theme-component/276621)._
