Question: Fill in the blank: _______ is the process through which all unnecessary characters are removed from a file.
- Minification
- Fetching
- Caching
- Deferring
Explanation
Minification removes nonessential characters such as spaces, line breaks, and comments from code files without changing how the code works. HubSpot describes this process for JavaScript and CSS as a way to reduce file size and improve how quickly browsers parse those assets. Smaller files support better site speed because they are faster to deliver and process. This is a code-optimization step focused on reducing unnecessary file weight, not on changing when a file is requested or stored. HubSpot Developers+1
Why the other options are incorrect
Fetching refers to retrieving a file or resource, not stripping unnecessary characters from its contents. HubSpot Developers
Caching refers to storing files so they can be served more quickly later, not reducing file contents by removing extra characters. HubSpot Developers+1
Deferring refers to delaying script execution until later in the page load process, not reducing file size by editing the file’s characters. HubSpot Developers
Source for verification
HubSpot Developer Blog: Site Speed and Performance: What You Can Do, and How HubSpot Helps HubSpot Developers
HubSpot Developer Documentation: CDN, security, and performance overview HubSpot Developers
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.
