Bricks Version: 1.7.0-Beta
Hi,
Since popups don’t support loading content with AJAX yet, I knew it will add a lot of bloat to DOM elements, since these are dynamic popups based on the dynamic data coming from the loop. I have 5 elements in the loop sort eventually there are 5 popups. In order to compare how many DOM Elements are added, I wanted to disable popups
The issue is that despite:
- removing interaction that triggers a popup on button click
- changing this popup’s template status from published to draft
When you inspect a structure in the console, you can see the popups are there (but hidden).
I have disabled LS Cache, disabled caching query loops in Bricks settings, restarted Litespeed server, disabled Redis (which without caching queries in Bricks settings and LS Cache enabled should cache any data), but nothing helps - the data coming from all 5 popups is still there.
Any ideas?
[EDIT]
So there is a bug, but a different one.
In order to have a popup working with a dynamic data, it’s required to place a Template Element next to a trigger element (so for example a button) or as a child element (so a div or wrapper can be a trigger).
Even if I disabled a popup trigger and changed a status of this popup template to draft or even if I removed it to trash, a template element would still recognize the content. So in the select field to pick a template under Template Element, while it didnt recgonize a template name, this popup template was still there…
So a bug is that you have to completely disable all triggers for (at least) popup template, otherwise even it’s a draft or put in trash, its content still will be triggered.
So since I have a lot of dynamic data inside a popup and few sections, each consists of of around 70 DOM elements. So when I removed popups, total DOM elements went down from 530 to 170. None of the popups DOMs would have been loaded if there was a feature “load popup content with ajax”
Hope it’s gonna be implemented very soon.