Tag: Asynchronous programming

Recent Post

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.

Resolve JavaScript promises sequentially

You can make JavaScript promises resolve by storing them in separate functions.

Wait for a function to finish before continuing in JavaScript

How to make JavaScript wait for a function to complete before executing another.