# IMPLEMENTED: Large amount of unneeded json data in source view

**URL:** <https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529>\
**Category:** Feature Requests / Improvements\
**Created:** [November 5, 2022, 2:58am UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529 "2022-11-05T02:58:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![unmessy](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/u/b9bd4f/32.png) [@unmessy](https://forum.bricksbuilder.io/u/unmessy)\
**Post date:** [November 5, 2022, 2:58am UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/1 "2022-11-05T02:58:49Z")

</div>

**Bricks Version** : 1.5.7

I don’t think this is a real “bug”, more like an optimization issue. Bricks produces very clean HTML code, which is excellent! But in the “bricks-scripts-js-extra” section there seems to be an unnecessary amount of json data that references “mapStyles”. I suppose it’s about styling embedded maps. Maybe this should be only included if a map is being used on the site, or have an option in the settings that could be turned on or off.

I checked several sites made with Bricks and it seems to be always part of the source code.

It’s not a big deal, I just mention it, because otherwise Bricks is very well optimized.

 ![SourceCode-bricksData-mapStyles](https://forum.bricksbuilder.io/uploads/default/original/2X/2/28bc27dbff1dcbc4fe9de02139910023f3f36609.jpeg)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [November 7, 2022, 4:32pm UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/2 "2022-11-07T16:32:48Z")

</div>

Hi Unmessy,  
Thanks for reaching out and for your suggestion.

We will look into it at some point, but as you say, it’s not as crucial as one or the other feature/improvement.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![morten](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@morten](https://forum.bricksbuilder.io/u/morten)\
**Post date:** [September 25, 2023, 4:18pm UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/3 "2023-09-25T16:18:47Z")

</div>

Hi @timmse, is there a reason why map styles are loading? It’s a big piece of code 😉

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [October 23, 2023, 9:34am UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/4 "2023-10-23T09:34:08Z")

</div>

Hi Morten,  
As I said, we’ll look into it when we get a chance. I don’t think it will have any impact on the performance of your site.

---

<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 14, 2023, 2:33pm UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/5 "2023-11-14T14:33:11Z")

</div>

I was thinking about JSON as well, but it went unnoticed 😃

> [@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:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [November 15, 2023, 9:07am UTC](https://forum.bricksbuilder.io/t/implemented-large-amount-of-unneeded-json-data-in-source-view/7529/6 "2023-11-15T09:07:02Z")

</div>

Hi guys,  
We’ve fixed the map style json issue in Bricks 1.9.3, now available as a one-click update in your WordPress Dashboard.

Changelog: [Changelog – Bricks](https://bricksbuilder.io/changelog/#v1.9.3)

Please let us know if you are still experiencing issues.

@MartinWB We’ll take a look at your suggestion when we get a chance, thank you!

Best regards,  
timmse
