April 12, 2021 at 5:33 am
Hi, I’m trying to figure out whether it’s related to Toolset or Kadence Blocks/Theme.
For my product page, I created a hooked element that hooks into, well, all product pages. This hooked element contains a Content Template block, from Toolset. And the Toolset template that it inserts contains a number of Kadence Blocks, including the Modal block, that is set to load after the footer, as it didn’t behave properly when loaded on mobile otherwise.
However, now in the process of optimizing the page, I noticed a pretty hefty DOM. I’m sort of OK with it given some of my needs. But the DOM size is sort of exceedingly large because every modal block is, according to Google Chrome, being loaded twice.
Is this a known problem with a known solution? Could it be Toolset causing this or is this an issue with the Kadence Block itself?
I’m not seeking support for a Toolset block from you guys, but I figured this would be my first stop in figuring out the problem as it’s a (presumably?) misbehaving Kadence Block, and I’m not sure if it’s the block itself misbehaving, or misbehaving because it’s inside a Toolset template. Having said that, I did switch the hooked element to draft to see if Toolset wasn’t somehow loading it to my product page regardless of whether it’s placed in the hooked element or not. But it wasn’t.