Question 108


3.6.1 Question

Multiple Choice

You are working on a AJAX-heavy site, and your script files are separated in your solution by function. You have already implemented minification and bundling, but you are still getting reports of poor performance when users try to access your pages. You cannot replicate the problem locally.

What additional steps can you take and still provide the same user experience?

  • A. Compress all scripts locally and have the users download the compressed files rather than the uncompressed files.
  • B. Turn IIS compression on, turn on the option to compress dynamic pages, and set the minimum file size to 0 so that every file served will be compressed.
  • C. Turn IIS compression on, disable dynamic page compression, and set the minimum file size to the size of your smallest bundled script file.
  • D. There is nothing more to do without redesigning the site.

Answer:

C
Explanation
A. Incorrect: Although you might be able to minimize the size of the files being downloaded, your browser cannot open and use those files.
B. Incorrect: This approach minimizes the size of the files being sent to the client, but it also has a heavy cost on both server-side and client-side processing because the server tries to compress every file.
C. Correct: This is an appropriate next step to try to compress the script and style files being sent to the client.
D. Incorrect: IIS compression has not yet been tried. It makes more sense to try all other solutions before approaching a code rewrite.