Tag: Asynchronous programming

Recent Post

Show Desktop Notifications with JavaScript in the Browser

Using the Notificaitons API, you can send system-level notifications to a user.

Wait for Multiple Fetch Requests to Finish

You can use Promise.all or Promise.allSettled to wait for multiple requests to complete.

How to copy an image to the clipboard with vanilla JavaScript

Any image can be copied to the clipboard with a little help from the HTML Canvas API.

How to wait until a page has loaded in JavaScript

Learn about event that allow you to run code upon the completion of page loading states.

Get user location by IP address with JavaScript

Location by IP can resolved by a third-party service or in Node.js.

GET, POST, PUT & DELETE using AJAX in JavaScript

AJAX (XMLHttpRequest) is a native object for making HTTP requests in JavaScript.

POST form data (also including a file) using Axios

Make a POST request containing form data as the payload using Axios.

Upload progress bar using XHR (Fetch alternative)

The XMLHttpRequest (XHR) object can be used to make and track upload progress.

setTimeout() and setInterval() in JavaScript

setTimeout() and setInterval() allow you to delay the execution of code or run it repeatedly.

Using Fetch with async/await

Async/await allows a Fetch request to be handled using synchronous-looking syntax.