Developing ASP.NET MVC Web Applications — Question 158
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are developing an ASP.NET Core MVC web application. The landing page of the application contains over 100 small JPEG images, including many images that have embedded text.
Mobile device users report performance issues when loading the page. You debug the application and determine that the number of HTTP requests is causing the issue.
You need to improve the performance of the landing page.
Solution: Combine images into a single image and use CSS sprites.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The solution is effective because combining multiple images into a single image reduces the number of HTTP requests, which directly addresses the performance issue reported by mobile users. Other options may not have been provided, but any alternative that does not reduce the number of requests or optimally load the images may not resolve the performance concerns.