# JS in OH 5.2.0 no longer supports "load"

**URL:** <https://community.openhab.org/t/js-in-oh-5-2-0-no-longer-supports-load/169934>\
**Category:** Scripts & Rules\
**Created:** [July 29, 2026, 4:02pm UTC](https://community.openhab.org/t/js-in-oh-5-2-0-no-longer-supports-load/169934 "2026-07-29T16:02:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![scuba](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/a88e57/32.png) [@scuba](https://community.openhab.org/u/scuba)\
**Post date:** [July 29, 2026, 5:24pm UTC](https://community.openhab.org/t/js-in-oh-5-2-0-no-longer-supports-load/169934/3 "2026-07-29T17:24:28Z")

</div>

Hi Rich,

Thanks so much for the quick help.

I’ve been using the `load` command for a long time; I actually learned it from you:

> [@OH 3 Examples: Writing and using JavaScript Libraries in MainUI created Rules](https://community.openhab.org/t/oh-3-examples-writing-and-using-javascript-libraries-in-mainui-created-rules/108526):
>
> I’ve managed to port a few of my rules over to OH 3 using MainUI and JavaScript and this article will have a couple of examples and some lessons learned. I’ve only experimented thus far using JavaScript. Some of this may apply to Rules DSL, Jython, and Groovy too when rules are created through MainUI of the REST API. Some of this may also apply to rules created through text files. But all of those are out of scope for this article, which only focuses on using ECMAScript in rules created through …

I’ve read quite a bit about the npm method and always thought, why make it so complicated when it can be done simply with `load`… 🙂

I think rewriting the libraries will take some time, and I’ll have to test it first, especially the dependencies between the libraries.

---

_[View the full topic](https://community.openhab.org/t/js-in-oh-5-2-0-no-longer-supports-load/169934)._
