Coding Challenge: Event Loops

Test your skills regarding event loops by solving the coding challenge presented below.

We'll cover the following

Problem

When a webpage loads, its base HTML page has a bunch of resources that the browser needs to fetch in order to display the page completely. However, the time that the browser takes to fetch all those resources determines its quality.

In this challenge, suppose you are writing code for building a browser. You have to fetch three URLs: http://educative.io, http://educative.io/blog, and http://youtube.com.

Following is the code that loads the resources in a synchronous manner.

Get hands-on with 1400+ tech skills courses.