If you have a basic popup, whether it’s with AJAX or preloaded, it doesn’t matter.
However, if you have dynamic popups assigned to listing items or as product quick view, then loading content with AJAX is a must have. When you have like 20 listing items / Woo Products per page, it adds a lot of bloat to DOM elements and significantly increases load time.
Has anyone come up with a custom code to trigger Bricks Popups with AJAX?
On one of the pages I have about 50 pop-ups, do not ask why and why you need it.
The page has just loaded, and all the content has already been received. this is an example page:
My solution to the problem. Works, but I would like it to be in Bricks itself
The same way you add dynamic data to any bricks elements. You will likely have to do some custom code snippets that get post data from the button that was pressed so you can retrieve custom fields from whatever post the button is related to.
they just released some version of this in 1.9.4… havent tried it yet but plan to today. I am JS on the page to call admin ajax method, then update the popup with the response… chatGPT is your friend.