Web APIs

Network Information API

Checking compatibility...

Access information about the network connection in terms of general connection type and quality, enabling adaptive experiences based on network capabilities.

Connection Information

Check what kind of internet connection the user has. This example shows how to detect if someone is using WiFi, cellular data, or other connection types, and how fast their connection might be.

=
=
=
=
=
=

Output

Click Run to see output...

Connection Changes

Detect when a user's internet connection changes. This example shows how to respond when someone switches from WiFi to cellular data or when their connection speed changes, helping you adapt content in real-time.

=
=
=
=
=
=

Output

Click Run to see output...

Save Data Mode

Respect when users want to reduce their data usage. This example detects when data-saving mode is enabled on a device, allowing your app to deliver lighter content and use less bandwidth when needed.

=
=
=
=
=
=

Output

Click Run to see output...