Today I Learned - Rocky Kev

Tagged “fetch”

  1. TIL problem with AJAX

    Synchronous XHR is harmful for performance because the event loop and main thread is blocked until the request is finished, resulting in the page hanging until the data becomes available. fetch is a much more effective and efficient alternative with a simpler API, and has no support for synchronous fetching of data.

  2. TIL a quick recipe involving Axios and Cheerio

    A quick recipe to http request an api and use cheerio to web-scrape it

See all tags.