Skip to content

Commit 62080a3

Browse files
committed
Add crossorigin attribute to CSS link element
1 parent 58fc614 commit 62080a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ This applies from version 0.5.0 onwards, as some versions before that have broke
1212
## [Unreleased]
1313

1414
### Added
15+
16+
- Add `crossorigin` attribute to `link` element for CSS asset. This prepares it for having an `integrity` attribute added if people want to use [SRI](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
17+
1518
### Changed
1619
### Fixed
1720

bin/prepare-release

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ for template in glossary empty; do
3636

3737
cat $template.html | \
3838
sed 's!/assets/glossary.[^\.]*.js!'"https://glstatic.net/glossary-page-template@$major/glossary"'.min.js!' | \
39-
sed 's!/assets/glossary.[^\.]*.css!'"https://glstatic.net/glossary-page-template@$major/glossary"'.min.css!' \
39+
sed 's!/assets/glossary.[^\.]*.css!'"https://glstatic.net/glossary-page-template@$major/glossary"'.min.css!' | \
40+
sed 's!link rel="stylesheet" href!link rel="stylesheet" crossorigin href!' \
4041
>$template-with-cdn-links.html
4142

4243
mv $template-with-correct-file-names.html $template.html

0 commit comments

Comments
 (0)