mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: Update image-optimization.md (#56819)
Fix the mistyped attribute rel PR Close #56819
This commit is contained in:
parent
1ee64a5c45
commit
3fa21cbbc5
1 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ NgOptimizedImage includes a number of features designed to improve loading perfo
|
|||
|
||||
A [`preconnect` resource hint](https://web.dev/preconnect-and-dns-prefetch) for your image origin ensures that the LCP image loads as quickly as possible.
|
||||
|
||||
Preconnect links are automatically generated for domains provided as an argument to a [loader](#optional-set-up-a-loader). If an image origin cannot be automatically identified, and no preconnect link is detected for the LCP image, `NgOptimizedImage` will warn during development. In that case, you should manually add a resource hint to `index.html`. Within the `<head>` of the document, add a `link` tag with `rel="preload"`, as shown below:
|
||||
Preconnect links are automatically generated for domains provided as an argument to a [loader](#optional-set-up-a-loader). If an image origin cannot be automatically identified, and no preconnect link is detected for the LCP image, `NgOptimizedImage` will warn during development. In that case, you should manually add a resource hint to `index.html`. Within the `<head>` of the document, add a `link` tag with `rel="preconnect"`, as shown below:
|
||||
|
||||
<docs-code language="html">
|
||||
|
||||
|
|
@ -432,4 +432,4 @@ For maintenance reasons, we don't currently plan to support additional built-in
|
|||
|
||||
No, but this is on our roadmap, so stay tuned.
|
||||
|
||||
If you're waiting on this feature, please upvote the Github issue [here](https://github.com/angular/angular/issues/56594).
|
||||
If you're waiting on this feature, please upvote the Github issue [here](https://github.com/angular/angular/issues/56594).
|
||||
|
|
|
|||
Loading…
Reference in a new issue