When a typical GET
request is made through the browser, it can be said that the browser acts as the client. However, who exactly serves as the client in the case of a GET
request via AJAX? Although it still occurs within the browser, I am intrigued to delve deeper into this distinction.
Is it plausible to consider the JavaScript engine of the browser as the client for an AJAX GET
request, while viewing the entire browser as the client for a standard GET
request? This argument holds weight especially if the JavaScript engine operates in a separate process.
Can anyone provide further insight into this matter?
According to Wikipedia, on AJAX:
XMLHttpRequest (XHR) is an API represented as an object with methods that facilitate data transmission between a web browser and server. This object is made available by the browser's JavaScript environment.