Question 109


3.6.2 Question

Multiple Choices

You want to implement bundling and minification in your site. What are some of the potential problems you need to be aware of? (Choose all that apply.)

  • A. None; there is no condition in which this is a poor decision.
  • B. You need to be sure you do not bundle too many scripts together because you cannot take advantage of concurrent downloads if only one or two files are being downloaded.
  • C. You should bundle and minimize scripts and CSS files together for maximum effectiveness.
  • D. Not bundling logically linked scripts together can have a negative effect on performance.

Answer:

BD
Explanation
A. Incorrect: Poor decisions in implementing bundling and minification can hurt performance rather than help it.
B. Correct: Bundling every script into a single large file might decrease the effective­ness of concurrent downloading.
C. Incorrect: You should keep scripts and CSS files separated for maximum effective­ness. They represent different aspects of the user experience, so a logical separa­tion, even on the client side, makes sense.
D. Correct: Not separating scripts logically might lead to the user downloading scripts that will never be used. Although the download experience is maximized, it does not make sense to download unused scripts.