diff --git a/.prettierignore b/.prettierignore index 3f158f3d63c5762..592c0159ccd1ed4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,3 +5,4 @@ dist public/__redirects public/analytics/static/downloads/main.css src/content/workers-ai-models/*.json +src/content/partials/images/*.mdx \ No newline at end of file diff --git a/src/content/partials/images/onerror.mdx b/src/content/partials/images/onerror.mdx index b3c6117b5a7684e..ab00705507d7fcf 100644 --- a/src/content/partials/images/onerror.mdx +++ b/src/content/partials/images/onerror.mdx @@ -11,5 +11,9 @@ This setting only works directly with [image transformations](/images/transform- In case of a [fatal error](/images/reference/troubleshooting/#error-responses-from-resizing) that prevents the image from being resized, redirects to the unresized source image URL. This may be useful in case some images require user authentication and cannot be fetched anonymously via Worker. This option should not be used if there is a chance the source image is very large. This option is ignored if the image is from another domain, but you can use it with subdomains. - ```js onerror=redirect ``` + + ```js + onerror=redirect + ``` + diff --git a/src/content/partials/images/slow-connection-quality.mdx b/src/content/partials/images/slow-connection-quality.mdx index 229fb83313b5e64..924f01b59e89e04 100644 --- a/src/content/partials/images/slow-connection-quality.mdx +++ b/src/content/partials/images/slow-connection-quality.mdx @@ -9,8 +9,16 @@ Allows overriding `quality` value whenever a slow connection is detected. Available options are same as [quality](/images/transform-images/transform-via-url/#quality). - ```js slow-connection-quality=50 ``` - ```js scq=50 ``` + + ```js + slow-connection-quality=50 + ``` + + + ```js + scq=50 + ``` + Detecting slow connections is currently only supported on Chromium-based browsers such as Chrome, Edge, and Opera.