# 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:** 6

<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 1, 2020, 2:27pm UTC](https://meta.discourse.org/t/loading-js-libraries-via-register-asset/156003/6 "2020-07-01T14:27:02Z")

</div>

@eviltrout  
A small plugin using the same library mentioned in the OP [GitHub - fzngagan/js-test · GitHub](https://github.com/fzngagan/js-test)

I simply tried to call the function added by the library in the initializer and in the js console I get `ReferenceError: RecordRTC is not defined`

I’ve used the unminified version of the library which might be helpful for debugging.

Also, a screenshot from the `sources` tab to show that the whole thing was passed to the `eval` function.

 ![Screenshot 2020-07-01 at 7.45.49 PM](https://global.discourse-cdn.com/meta/original/3X/f/7/f7adccd403a5105b14734ef972bf06729093684c.png)

---

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