Thanks to the increased daily usage of mobile devices, network connectivity has become a necessary feature. Meanwhile, the Web has connected humankind like never before. The daily intake of content and the ability to deliver it with higher processing power have made it possible. In this article at World Wide Web Consortium, learn the widening scope of network connectivity.
Executing Networking Connectivity
More efforts toward real-time communications are opening new vistas for telecommunication and Web network connectivity. XMLHttpRequest is a commonly used API for launching content, leveraging HTTP and HTTPs guidelines on Web servers. WHATWG Fetch API is also a good alternative. However, browsers do not permit users to request access to several domains from a Web page to protect credentials. Web sites can also rule out the hijacking by disabling the cross-origin resource sharing (CORS) option. The action further increases the interrelationship between different Wed applications and services.
XMLHttpRequest works efficiently for client-initiated network requests. Since it drains out the battery as well as faces obstruction in networking, mobile devices are better off with server-initiated requests. The server-sent event API can generate DOM events following your push notifications.
The WebSocket API, however, is more flexible and requires less network connectivity. The bidirectional API is developed on the IETF WebSocket protocol (RFC6455).
HTML5 onLine DOM flag helps you realize if network connectivity is online or offline to access the Web environment. You can use the Resource Timing API to understand how your network influences page load and get assistance to optimize it.
There are several options in network connectivity that you can explore. Streams, Beacon API, Push API, etc. are good examples. If you are acquainted with Web Real-Time Communications (WebRTC), you know how it encourages real-time peer-to-peer data connections among browsers. Web Background Synchronization, Background Fetch, and Network Information API are also garnering new interests.
To view the original article in full, click on the following link: https://www.w3.org/2019/04/web-roadmaps/mobile/network.html