Back to Home
The Network Information API
The Network Information API provides information about the system's
connection in terms of general connection type (e.g.,
‘wifi’, ‘cellular’, etc.). This can be used to
select high definition content or low definition content based on the
user's connection. The entire API consists of the addition of the
NetworkInformation interface and a single property to the Navigator
interface: Navigator.connection.
Note: This feature is available in Web Workers.
Example
- Below given images shows blury on low speed networks.
-
It also uses
Intersection Observer API
features.
-
Use Network tab in Chrome developer tools to change the
network throttling.
Why do we use it?
It is a long established fact that a reader will be distracted by the
readable content of a page when looking at its layout. The point of
using Lorem Ipsum is that it has a more-or-less normal distribution of
letters, as opposed to using 'Content here, content here', making it
look like readable English. Many desktop publishing packages and web
page editors now use Lorem Ipsum as their default model text, and a
search for 'lorem ipsum' will uncover many web sites still in their
infancy. Various versions have evolved over the years, sometimes by
accident, sometimes on purpose (injected humour and the like).
Browser compatibility
More Info