Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4e4b66d
Added assetgraph-builder post build improvement
Munter Dec 17, 2017
47f5f5d
Switch backer and sponsor avatars from svg to raw images. Cuts 500kb …
Munter Dec 17, 2017
3420365
Pull normalize.css into repository for quicker local serving
Munter Dec 17, 2017
60e2227
Pull html5 shiv into local project for faster serving
Munter Dec 17, 2017
459c668
Move google analytics script to footer to avoid clogging the pipes du…
Munter Dec 17, 2017
ee3532a
Switch header over to use local logo and drop js for animating logo a…
Munter Dec 17, 2017
ea2a94b
Use local gitter image
Munter Dec 17, 2017
5d391b4
Switch backers from js onload animation to having a default backgroun…
Munter Dec 17, 2017
0b4ba76
Switch opencollective image listing and avatars fadein
Munter Dec 17, 2017
10d8f2f
Switch google analytics to always use https, since they redirect thes…
Munter Dec 17, 2017
7f8e55f
Mobile friendliness
Munter Dec 17, 2017
1d9af0a
Space out badges a bit
Munter Dec 17, 2017
1610a3c
Add svgo and inline small enough images
Munter Dec 17, 2017
141c57e
Downsize content images to maximum content width
Munter Dec 17, 2017
cca00ed
Reduce color palette of largest images
Munter Dec 18, 2017
401473a
More screenshot image palette reduction
Munter Dec 18, 2017
f48bdf9
Add pre-browsing hints for external services
Munter Dec 18, 2017
edeaa6b
Force https download for avatars. Leverage http2 from opencollective
Munter Dec 18, 2017
3f0e959
Force https download for avatars. Leverage http2 from opencollective
Munter Dec 18, 2017
236685d
Only preconnect to analytics
Munter Dec 18, 2017
fdb43f6
Added netlify header auto generation
Munter Dec 18, 2017
f22e557
Externalise js bundles
Munter Dec 18, 2017
7970e12
Be explicit about styling of screenshot images
Munter Dec 18, 2017
52dcf29
https urls where possible
Munter Dec 18, 2017
23bb050
Specific value for inlining htmlimages to guarantee logo is inlined
Munter Dec 18, 2017
fdf5da5
Handle the case where all avatars are already loaded at the time when…
Munter Dec 18, 2017
c461d76
Remove crossorigin='anonymous' from preconnect hints. Only needed for…
Munter Dec 20, 2017
caab3d7
Add preconnect for doubleclick domain that google analytics results i…
Munter Dec 20, 2017
2f728c1
Lint netlify-headers script
Munter Dec 21, 2017
30a7f22
Run appveyor tests on x64 platform. Might enable sharp installation
Munter Dec 21, 2017
ec4f952
Use x64 node on appveyor
Munter Dec 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove crossorigin='anonymous' from preconnect hints. Only needed for…
… fonts, xhr and es module loads
  • Loading branch information
Munter authored and boneskull committed Dec 21, 2017
commit c461d76c330427f644d5ec47b5a445feee4d61d9
6 changes: 1 addition & 5 deletions scripts/netlify-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var resourceHintTypeMap = {
function getHeaderForRelation (rel) {
let header = `Link: <${rel.href}>; rel=${resourceHintTypeMap[rel.type]}; as=${rel.as}; type=${rel.to.contentType}`;

if (rel.crossorigin || rel.as === 'font') {
if (rel.as === 'font') {
header = `${header}; crossorigin=anonymous`;
}

Expand Down Expand Up @@ -74,10 +74,6 @@ new AssetGraph({ root: 'docs/_dist' })
resourceHintRelations.forEach(rel => {
let header = `Link: <${rel.href}>; rel=preconnect`;

if (rel.crossorigin) {
header = `${header}; crossorigin=anonymous`;
}

headerMap[url].push(header);

rel.detach();
Expand Down