jQuery 4 compatibility

Created on 2 July 2025, 27 days ago

Problem/Motivation

The Juicer.io JS uses Backbone.CrossDomain library, which relies on

jQuery.support.cors

property to determine if CORS is supported.

https://github.com/victorquinn/Backbone.CrossDomain/blob/master/Backbone...

This property was removed in jQuery 4:
https://github.com/jquery/jquery/commit/cf84696fd1d7fe314a11492606529b5a...

Drupal 11 ships with jQuery 4 beta, so Juicer.io JS doesn't work anymore, throwing the following error:

Uncaught ReferenceError: XDomainRequest is not defined

The issue likely should be fixed on Juicer.io side, but for now it's good to have a workaround.

Steps to reproduce

Install and configure the juicerio module on Drupal 11.

Proposed resolution

Apply a workaround.

Remaining tasks

Testing.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024