Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
There are a number of places where Drupal's JavaScript licences (especially in the context of sites distributing, aggregating and minifying JS files) could be significantly improved. This is a meta issue to discover and discuss them.
Here are the issues identified so far (with issue number if available):
- Non-trivial JavaScript files need GPL license declaration for compliant distribution to browsers #1649654: Non-trivial JavaScript files need GPL license declaration for compliant distribution to browsers
- JS and CSS aggregation deletes license information #156124: JS and CSS aggregation deletes license information (also discussed with respect to minification in #119441: Compress JS aggregation
- Adding license declarations for non-trivial vendor libraries (jQuery etc)
- Drupal.org contributor policy on license declarations in JavaScript files (not a core issue)
- Improving the clarity and detectability of licenses in aggregated files
- Providing better tools/modules and best practices for site builders to audit and present licenses for their specific site JavaScript using license declarations or JavaScript License Web Labels (not a core issue)
Comments
Comment #1
Wim LeersPlease see #119441-160: Compress JS aggregation.
Comment #2
klonos...coming from #119441: Compress JS aggregation. Just noting the following for reference:
- in #1341792: [meta] Ship minified versions of external JavaScript libraries it was pointed that shipping the full version of a library along with the minified (not including license block because minification scripts tend to remove them) negates the legal barrier of distribution.
- JavaScript License Web Labels was pointed as a possible alternative solution too (by no2e in #119441-149: Compress JS aggregation):
Comment #3
mfbSee also https://drupal.org/project/librejs - a contrib module which allows Drupal sites to be compliant with the LibreJS browser plugin
Comment #3.0
mfbAdding link to 119441
Comment #4
Wim LeersPlease see #2258313: Add license information to aggregated assets, it adds license metadata to asset libraries and exposes that information according to the JavaScript Web License Labels standard.
Comment #16
nod_closing as duplicate of #2258313: Add license information to aggregated assets
Comment #17
nod_