Created on 29 February 2024, 9 months ago

Problem/Motivation

Since version 10.1 Drupal now also supports AJAX for GET requests. This new feature makes Drupal AJAX interesting for use in various projects that previously implemented custom solutions for reloading content.

Cookie Content Blocker does not yet support blocking of content fetched by AJAX requests. Although the placeholder is correctly rendered in an AJAX response, the blocked assets are still passed through in the form of add_js commands.

Proposed resolution

Adapting the processing of AJAX responses would be a major task. Currently, this module practically overwrites the HtmlResponseAttachmentsProcessor completely. The same would probably also have to be done for the AjaxResponseAttachmentsProcessor.

  • Is there any interest in the community to support AJAX?
  • Do you have ideas on how AJAX responses could be processed by this module?
Feature request
Status

Active

Version

2.2

Component

Code

Created by

🇩🇪Germany rob_pr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024