Remove support vary-header
article thumbnail

The Fastest Google Fonts

CSS Wizardry

While prototyping, I turned to Google Fonts, and with their recent ability to support font-display via a URL parameter ( &display=swap ), I knew that things would stay pretty speedy. We can’t go full preload as it isn’t widely enough supported. if you’re @import ing your Google Fonts CSS file), then your mileage will vary.

Google 364
article thumbnail

WebP Caching has Landed!

KeyCDN

It’s all about the accept header sent from the client. This header determines the image format in the response. If a request contains the header accept: image/webp the asset will be delivered as WebP. In return the content-type header in the response shows the corresponding image format. How Does WebP Caching Work?

Cache 81
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Localizing Your Next.js App

Smashing Magazine

Note : The first line is letting the TS Server (if you are on a TypeScript project, or if you are using VSCode) which are the properties supported in the configuration object. A list of all locales supported by your app. Now your app has multiple locales supported there is one last thing you must be aware of in Next.js.

article thumbnail

Increase the Performance of your Site with Lazy-Loading and Code-Splitting

Jos

The example page we are going to use contains several sections or blocks: a header (these days, a large hero image taking the whole above-the-fold area) a section with a few images another section with a heavy component like a map a footer The basic structure of a page we will be using as example. < Header />. < < div >. <

Code 147
article thumbnail

Setting Up CloudFront to Host Your Web App

CSS - Tricks

Note that this is substantially more work than what we saw in the last article, and the instructions are likely to be different for you based on the exact needs of your web app, so your mileage may vary. Mine looks like this: Lastly, for response headers policy, we can select “CORS With Preflight” from the list.

Cache 79
article thumbnail

Increase the Performance of your Site with Lazy-Loading and Code-Splitting

Jos

The example page we are going to use contains several sections or blocks: a header (these days, a large hero image taking the whole above-the-fold area). < Header />. < </ div > ; &#125; ; When the user visits the page, it is highly likely that they will see the header on screen. for some inspiration :).

Code 130
article thumbnail

Improving Core Web Vitals, A Smashing Magazine Case Study

Smashing Magazine

Previous metrics measured variations of the first paint to screen (often this was a header or background color); incidentally content that isn’t really what the user actually wants to get out of the page. And web performance does vary hugely by country , and shows a clear divide between richer and poorer countries.

Google 143