Join the Webstudio community

Updated 3 months ago

Connecting JS-file

At a glance

The community member's post asks if it is possible to connect a small custom JavaScript library directly to a file in the Assets, or if it is only possible to include it via <script>...</script> insertion. One of the comments suggests that the library should be included via an external script.

Hello! Is there any possibility to connect a small custom JS library to a file directly in Assets? Or is it only possible to include it via <script>...</script> insertion?
O
1 comment
Via external script
Add a reply
Sign up and join the conversation on Discord
insertion?","url":"https://help.webstudio.is/connecting-jsfile-6dcxLK2S4j28","identifier":"6dcxLK2S4j28","publisher":{"@type":"Organization","name":"Webstudio","logo":{"@type":"ImageObject","url":"https://assets.usehall.com/org_01JEYTC8WWMF7N46W9J4J7CFDP/c7f10f06-f934-4e35-b008-431a89254f9f.png"}},"comment":[{"@type":"Comment","text":"Via external script","dateCreated":"2025-01-25T09:32:54.898Z","dateModified":"2025-01-25T09:32:54.898Z","author":{"@type":"Person","url":"https://help.webstudio.is/members/cdd3ed87-53a0-414a-885a-56b7939e412a","name":"Oleg Isonen","identifier":"cdd3ed87-53a0-414a-885a-56b7939e412a","image":"https://cdn.discordapp.com/avatars/469405813048606720/8b66a5882214c63ee6148fcce3ef8e93.webp?size=256"},"commentCount":0,"comment":[],"position":1,"upvoteCount":0}],"author":{"@type":"Person","url":"https://help.webstudio.is/members/2f2885ba-cdea-41fb-aa8e-4bc5654c79a2","name":"Divisor","identifier":"2f2885ba-cdea-41fb-aa8e-4bc5654c79a2","image":"https://cdn.discordapp.com/avatars/1139578798338211880/a23e7029312db250275f49dc17be2bf4.webp?size=256"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0}}]