IMPLEMENTED: Large amount of unneeded json data in source view

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.

3 Likes

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

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

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.

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

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

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