Skip to content

Commit 31d667d

Browse files
committed
CCM-9916: also preload in html
1 parent b421f2e commit 31d667d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

frontend/src/app/layout.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ export default function RootLayout({
5757
return (
5858
<html lang='en'>
5959
<head>
60+
<link
61+
rel='preload'
62+
as='font'
63+
href='https://assets.nhs.uk/fonts/FrutigerLTW01-55Roman.woff2'
64+
type='font/woff2'
65+
crossOrigin='anonymous'
66+
/>
67+
68+
<link
69+
rel='preload'
70+
as='font'
71+
href='https://assets.nhs.uk/fonts/FrutigerLTW01-65Bold.woff2'
72+
type='font/woff2'
73+
crossOrigin='anonymous'
74+
/>
75+
6076
<script
6177
src={`${getBasePath()}/lib/nhsuk-frontend-10.0.0.min.js`}
6278
defer

0 commit comments

Comments
 (0)