I’m trying to code a Chrome extension where when a user Googles something, every result/site that comes up is sent to an API which then returns data I want to display next to the corresponding site’s name.
I know I can make HTTP requests with XMLHttpRequest
, but I’m not sure how or even if this would work asynchronously.
What I mean is the requests should not be blocking/make the page load slower, but I also need to update the page’s content as the responses come in. The page should update as the HTTP responses come in, not wait for them all to come in and then update.
Is this possible? If so, could someone point me in the right direction.
Thanks!