Hello Finsweet Community,
I’ve been experimenting with the new Cookie Consent Component and have some questions regarding the placeholder functionality.
From my understanding, this feature currently works well for map embeds and video elements. However, I’m curious if it’s possible to customize this further. Specifically:
- Can I control when a placeholder is shown based on specific cookie categories, even if the content isn’t an embed or video?
- Is there a way to implement placeholders for custom scripts that depend on cookie consent, such as when integrating Google Maps via the JavaScript API?
Currently, I’m trying to implement a custom solution where I load Google Maps dynamically using the JS API. Unfortunately, I haven’t been able to get the placeholder to display correctly when the corresponding cookies haven’t been accepted.
Any tips or guidance on how to extend the placeholder functionality to custom scripts or better control its behavior would be greatly appreciated!
Thanks in advance for any help or insights!