Std.Html.Media.adaptiveImage
fn
adaptiveImage: &Std.Http.Server.Resilience.NetworkProfile -> Str -> Str -> Int -> Int -> Std.Html.Media.Priority -> Str -> BytesThis is a callable function.
What it does
Renders a network-adaptive `<img>` tag tuned for device telemetry and network bandwidth.
On poor networks (2G/3G) or `Save-Data: on`:
- If `lqipDataUri` is provided, it is used directly as the `src` to avoid round-trips.
- Enforces `loading="lazy"`, `decoding="async"`, and `fetchpriority="low"`.
On high-speed networks:
- With `Priority.Critical`, enforces `loading="eager"`, `decoding="sync"`, and `fetchpriority="high"`.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
