klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

Intermittent load and mobile visibility

Open JFanthorpe opened this issue 2 years ago • 0 comments

Hi there,

Have been using Klaro and so far it's been great. I have encountered two issues that so far I've been unable to squash.

BTW: I've followed the instructions to install from MeasureSchool on YouTube. Though I have since added the klaro.is file and the config as external .js files.

I have tried both deferred and async loading of the files.

  1. Sometimes, when consent is not yet set perhaps every 8th reload, the cookie consent banner fails to load, it appears again at the next refresh.

  2. Despite cleared cache and pop-up blocker turned off, the cookie consent banner fails to appear on mobile devices (no custom media queries present), although the desktop mobile preview in inspector displays the banner just fine.

Any advice would be appreciated.

Thank you for your help.

Update:

issue solved, for anyone facing a similar issue, make sure you’re loading the files in the right order. Deferred loading of klaro-config.js first worked for me.

🙂

JFanthorpe avatar May 22 '23 19:05 JFanthorpe