Question 24
Prerna and Swathy are using a web application built with Vue.js for the BS Degree program. When the page loads, the sidebar content appears instantly• However, when they click on an Assignments link, the main content takes noticeable time to load • A simplified version of the component is shown below:
Which of the following statements correctly explain why the Assignments page takes time to load?
The sidebar is likely part of a parent component and is already rendered before the API call
The Assignments component waits for the API response before displaying data
Vue blocks rendering of all components until API calls complete
The delay is caused because data is fetched asynchronously after the component is created