Dmitri Pavlutin 1/24/2016

Catch the XMLHttpRequest in Plain JavaScript

Read Original

This article explains how to intercept and monitor XMLHttpRequest (XHR) events in plain JavaScript, particularly useful for Chrome extensions. It details overriding the `open` and `send` methods on the XMLHttpRequest prototype to inject custom logic for tracking when AJAX requests start and finish.

Catch the XMLHttpRequest in Plain JavaScript

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week