From 1100cfe03158dc63a5cd3cffaddcbe499152c170 Mon Sep 17 00:00:00 2001 From: Laurent Thiebault Date: Sun, 20 Aug 2023 19:58:02 +0200 Subject: [PATCH 1/2] docs: update a small typo for a link in `02-app/01-building-your-application/06-optimizing/01-images.mdx` --- .../01-building-your-application/06-optimizing/01-images.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx b/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx index 65ebaeb7796a3..768d27b938d93 100644 --- a/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx +++ b/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx @@ -141,7 +141,7 @@ To protect your application from malicious users, you must define a list of remo ### Loaders -Note that in the [example earlier](#remote-images), a partial URL (`"/me.png"`) is provided for a remote image. This is possible because of the loader architecture. +Note that in the [example earlier](#local-images), a partial URL (`"/me.png"`) is provided for a remote image. This is possible because of the loader architecture. A loader is a function that generates the URLs for your image. It modifies the provided `src`, and generates multiple URLs to request the image at different sizes. These multiple URLs are used in the automatic [srcset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset) generation, so that visitors to your site will be served an image that is the right size for their viewport. From 5bdf32ad4c70a9de6f45d480fea0bab4c4fc37bf Mon Sep 17 00:00:00 2001 From: Laurent Thiebault Date: Sun, 20 Aug 2023 20:10:06 +0200 Subject: [PATCH 2/2] docs: update 01-images.mdx --- .../01-building-your-application/06-optimizing/01-images.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx b/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx index 768d27b938d93..44296e3db6b1b 100644 --- a/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx +++ b/docs/02-app/01-building-your-application/06-optimizing/01-images.mdx @@ -141,7 +141,7 @@ To protect your application from malicious users, you must define a list of remo ### Loaders -Note that in the [example earlier](#local-images), a partial URL (`"/me.png"`) is provided for a remote image. This is possible because of the loader architecture. +Note that in the [example earlier](#local-images), a partial URL (`"/me.png"`) is provided for a local image. This is possible because of the loader architecture. A loader is a function that generates the URLs for your image. It modifies the provided `src`, and generates multiple URLs to request the image at different sizes. These multiple URLs are used in the automatic [srcset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset) generation, so that visitors to your site will be served an image that is the right size for their viewport.