# Interactions: writing externally

**URL:** <https://forum.bricksbuilder.io/t/interactions-writing-externally/27774>\
**Category:** Feature Requests / Improvements\
**Created:** [November 11, 2024, 8:58am UTC](https://forum.bricksbuilder.io/t/interactions-writing-externally/27774 "2024-11-11T08:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolia](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/j/e68b1a/32.png) [@jolia](https://forum.bricksbuilder.io/u/jolia)\
**Post date:** [November 11, 2024, 8:58am UTC](https://forum.bricksbuilder.io/t/interactions-writing-externally/27774/1 "2024-11-11T08:58:34Z")

</div>

hello bricks team,

If we set an interaction on each element, the interaction is written directly in HTML in the front end.

But it would be great if the interactions were written externally so that they don’t affect the size of the HTML.

---

<div class="post-metadata">

**Author:** ![MartinWB](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/martinwb/32/22977_2.png) [@MartinWB](https://forum.bricksbuilder.io/u/MartinWB)\
**Post date:** [November 11, 2024, 9:20am UTC](https://forum.bricksbuilder.io/t/interactions-writing-externally/27774/2 "2024-11-11T09:20:33Z")

</div>

I’ve suggested this as well here

> [@Interactions in external file](https://forum.bricksbuilder.io/t/interactions-in-external-file/16275):
>
> What do you think about page-specific interactions loaded in external file(json)? Let say { "2d22, 2d23, 2d24": { "id": "wbreai", "trigger": "click", "target": "popup", "templateId": "5721", "action": "show" }, "2d25": { "id": "uniqueId2", "trigger": "hover", "target": "element", "templateId": "1234", "action": "hide" }, // more interactions } so our DOM may be like so \<div data-interaction-i…

---

<div class="post-metadata">

**Author:** ![emmanuelson](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/emmanuelson/32/24437_2.png) [@emmanuelson](https://forum.bricksbuilder.io/u/emmanuelson)\
**Post date:** [November 11, 2024, 10:24am UTC](https://forum.bricksbuilder.io/t/interactions-writing-externally/27774/3 "2024-11-11T10:24:18Z")

</div>

I second this approach if it’s feasible. The current approach is why i try as much as possible to avoid using interactions unless for simple single ones
