Skip to content

Delay until interaction #154

@yoshieralf

Description

@yoshieralf

Describe the bug

Hi. I use version 1.8.1 of Pressidium Cookie Consent and also the FlyingPress cache plugin. On the website, the cookie banner only appears once a key has been pressed or the mouse has been moved.

From what I can see in the Perfmatters documentation (recommended by Flyngpress for JavaScript exclusions) https://perfmatters.io/docs/delay-javascript/#exclusions, there are a number of patterns and JavaScript files that can be excluded by default. Perfmatters indicates the identifiers and elements that can be excluded from other cookie plugins (CookieYes, Complianz, etc.).

For example, for CookieYes, they indicate the following patterns, identifiers, and files to exclude

/wp-content/plugins/cookie-law-info/legacy/public/js/cookie-law-info-public.js
cookie-law-info-js-extra
jquery.min.js

I was wondering, what patterns or identifiers can be excluded in Pressidium so that it loads without the user having to interact?

Thank you

Steps to reproduce
Detailed steps to reproduce the behavior:

  1. Go to the web
  2. Not move
  3. The Banner does not appear
  4. I move the mouse or press a key, and the banner appears.

Expected behavior
Display the cookie banner without requiring user interaction.

Environment (please complete the following information):

  • Browser: Brave, Chrome, Firefox...
  • Plugin version: 1.8.1
  • WordPress version: 6.8.2
  • PHP version: 8.3.23

Checklist

  • I have searched the GitHub issues to ensure this is not a duplicate
  • I have provided sufficient information to reproduce and understand the issue
  • I have tested the issue using the latest version of the plugin
  • I have reviewed the wiki to ensure this issue is not related to a misconfiguration

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions