DEV Community

Danilo Desole
Danilo Desole

Posted on

Cookiebot and Slider Revoltion

Recently I noticed an issue in my WordPress website: I had configured the CookieBot plugin, by CookieBot, to automatically block all the cookies until the user accept/reject those (more info here), and the slider (on all pages) has stopped to work.

The slider I'm mentioning is Slider Revolution by ThemePunch.

I struggled to came up with a solution, online the only proposed fix was to set the CookieBot plugin to manually block all the cookies, though using this way I needed to code a bunch of JS in order to effectively block the cookies from being downloaded to the user browser storage. Too lazy to do that!

So I investigate a little bit and I figured out that Google Fonts doesn't set cookie, but it's collecting IPs and other info (more comprehensive description here) hence CookieBot is blocking the script execution until the user explicitly accepts that its identity (IP and other stuff mentioned before) can be recorded by Big G.

Bottom of the bottle: disable Google Fonts load in Slider Revolution and load them as a separate resource, if your theme doesn't load them already.

Alt Text

Happy Blogging!

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay