Category: APIs

  • SSE API

    Server-Sent Events (SSE API) Server-sent events are a way of sending data from a server to a web page without requiring the page to refresh or make requests. These events are useful for creating real-time applications, such as chat, news feeds, or notifications. Using SSE, we can push DOM events continuously from our web server to…

  • Web Storage

    Web Storage HTML Web storage is a mechanism used for storing structured data on the client side without sending it to the server. These two storage mechanisms are session storage and local storage. Both are collectively part of the HTML5 Web Storage API. Need of Web Storage HTML Web storage was introduced to overcome the following drawbacks of cookies: Types…

  • WebSockets

    WebSockets is a next-generation bidirectional communication technology for web applications that operates over a single socket. WebSockets allow bidirectional communication, which means both client and server can send data to each other independently and simultaneously. After establishing a Web Socket connection with the web server, we can send data from browser to server by calling the send() method and…

  • Web Workers API

    The HTML Web Workers API is a JavaScript feature that is used to run computationally intensive tasks in background in a separate thread without interrupting the user interface. In this Web Workers API chapter, you will learn the following topics: What Are Web Workers? Need of Web Workers JavaScript was designed to run in a single-threaded environment, meaning multiple…

  • Drag and Drop API

    Drag and Drop API Drag and Drop (DnD) is a powerful user interface concept that makes it easy to copy, reorder, and delete items with the help of mouse clicks and movements. This allows the user to click and hold the mouse button down over an element, drag it to another location, and release the mouse…

  • Geolocation API

    HTML Geolocation API is used by web applications to access the geographical location of the user. Most modern browsers and mobile devices support the Geolocation API. JavaScript can capture your latitude and longitude and can be sent to a backend web server and do fancy location-aware things like finding local businesses or showing your location on a…