Prefer local libraries (instead of CDN) [GDPR]

Created on 18 August 2025, about 1 month ago

Problem/Motivation

Third party table libraries are currently loaded from CDN, see https://git.drupalcode.org/project/paragraphs_table/-/blob/2.x/paragraph...

Due to GDPR this is not allowed in EU countries - and similar applies to other countries and states.

For that reasons, libraries should be preferred from local sources (libraries folder) and fall back to CDN if not present.
The status report might show, which source is used.

Patterns for that are present in many contrib modules that use libraries.

If the maintainer is not against it, we'd like to add that functionality.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇫🇷France lazzyvn paris

    In the GDPR text (Regulation (EU) 2016/679), there is no explicit mention of "not using CDN." The GDPR only establishes principles for processing personal data.
    The issue with CDN is that it may lead to the transmission of personal data (such as IP addresses) to third parties outside the EU. This may not be true because CDNs usually have servers close to where you access, so most CDNs have servers in Europe. CDNs mainly operate through caching in the browser; if you have already browsed a another site that uses this CDN, then the browser will not load it again, which helps load the site faster, so I definitely will not fix this issue.

  • 🇩🇪Germany Anybody Porta Westfalica

    This may not be true

    isn't a good legal term... 😂 And there doesn't need to be any explicit mentioning
    Where are the sources that can be shown at court to let them know that it's totally fine?

    Furthermore, there might be good other reasons for local libraries, for example if you use Drupal in an Intranet.

    So, would you be fine with it, if we implemented the functionality?

Production build 0.71.5 2024