Skip to content

Commit

Permalink
Remove preloading fonts that weren't being used (#6562)
Browse files Browse the repository at this point in the history
* Remove light amazon ember font

* Remove ember woff2 font
  • Loading branch information
timngyn authored Dec 6, 2023
1 parent cb2d07c commit 01296ba
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
Binary file removed public/fonts/AmazonEmber_W_Lt.woff2
Binary file not shown.
Binary file removed public/fonts/AmazonEmber_W_Rg.woff2
Binary file not shown.
14 changes: 0 additions & 14 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,6 @@ export default class MyDocument extends Document {
httpEquiv="Content-Security-Policy"
content={getCspContent(this.props)}
/>
<link
rel="preload"
href="/fonts/AmazonEmber_W_Rg.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<link
rel="preload"
href="/fonts/AmazonEmber_W_Lt.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
<script
src="https://prod.assets.shortbread.aws.dev/shortbread.js"
defer
Expand Down
8 changes: 0 additions & 8 deletions src/styles/font-faces.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
@font-face {
font-family: 'Amazon Ember';
src: url('/fonts/AmazonEmber_W_Rg.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: Amazon Ember;
src: url(../public/fonts/Amazon_Ember_Rg.ttf);
Expand Down

0 comments on commit 01296ba

Please sign in to comment.