Consent banner blocks script

We have a script running on our cms website, that opens a sidebar.

But after the decline decission the script gets blocked, this only works after consenting the cookies. This has nothing to do with cookies or tracking, how can we fix this ?

Hi @Elty

Is your script for opening a sidebar implemented via Google Tag Manager by chance?

nope, they arent. Its a script loaded by another script and so on. Its a Jquery script and keeps loading in other scripts if needed but no external scripts all self written.

Could you provide more information on how the script was placed? i.e. is it placed in the templates in Design Manager or in the header/footer in Website Settings?

Also, a link to the website would help be helpful for troubleshooting as well if you don’t mind sharing that.

Just making a note that we chatted through DM and the scripts are loaded through requirejs.config in a template/partial.

requirejs.config({
 urlArgs: "v={{ version }}", 
 paths: {
 jquery: 'https://code.jquery.com/jquery-x.x.x.min',
 slick: 'https://cdn2.hubspot.net/hubfs/xxxxxxx/slick.min',
 tabs: '{{ get_public_template_url( 'xxxxxxx/tabs.js') | cut('.js') }}',
 // etc.......
 }) ;

requirejs (['app']);

The HubSpot cookie consent should not be interfering with this kind of setup (i.e. not loading scripts, such as “slick.min.js”) and there might be something else going on - unless I am missing something.

I am not familiar enough with this to advise further - tagging @Jaycee_Lewis in case you have any insight.