Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist
public/__redirects
public/analytics/static/downloads/main.css
src/content/workers-ai-models/*.json
src/content/partials/images/*.mdx
6 changes: 5 additions & 1 deletion src/content/partials/images/onerror.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Tabs>
<TabItem label="URL format">```js onerror=redirect ```</TabItem>
<TabItem label="URL format">
```js
onerror=redirect
```
</TabItem>
</Tabs>
12 changes: 10 additions & 2 deletions src/content/partials/images/slow-connection-quality.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

<Tabs>
<TabItem label="URL format">```js slow-connection-quality=50 ```</TabItem>
<TabItem label="URL format alias">```js scq=50 ```</TabItem>
<TabItem label="URL format">
```js
slow-connection-quality=50
```
</TabItem>
<TabItem label="URL format alias">
```js
scq=50
```
</TabItem>
</Tabs>

Detecting slow connections is currently only supported on Chromium-based browsers such as Chrome, Edge, and Opera.
Expand Down
Loading