# How to load a custom JS script (in the head) in the "Elements"

**URL:** <https://community.weweb.io/t/how-to-load-a-custom-js-script-in-the-head-in-the-elements/1148>\
**Category:** How do I?\
**Created:** [September 19, 2022, 8:28pm UTC](https://community.weweb.io/t/how-to-load-a-custom-js-script-in-the-head-in-the-elements/1148 "2022-09-19T20:28:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [September 20, 2022, 7:23am UTC](https://community.weweb.io/t/how-to-load-a-custom-js-script-in-the-head-in-the-elements/1148/5 "2022-09-20T07:23:26Z")

</div>

> [@Error: Cannot use import statement outside a module](https://community.weweb.io/t/error-cannot-use-import-statement-outside-a-module/1035/2):
>
> For examples on how to import packages you can have a look at [my integration of Stripe Elements](https://github.com/Dorilama/weweb-stripe-elements-test/blob/b335e0c45473b2e7dae286866ff2da90572c6f62/src/wwElement.vue#L26) or [weweb open source components](https://github.com/weweb-assets/).

Have a look at this topic

---

_[View the full topic](https://community.weweb.io/t/how-to-load-a-custom-js-script-in-the-head-in-the-elements/1148)._
