667). What is the purpose of minifying the JavaScript?
[A] To streamline the visits
[B]To save the visits
[C]To save data
[D]To increase the loading time
Show Answer
Correct Answer: To streamline the visits
Notes:
Answer: a
Explanation: To ensure that your first-time visits are as streamlined as possible, we need to minify our JavaScript. Minifying JavaScript results in decreasing the loading time and hence helps in creating a better user experience.
668). From which did Minification concept originate?
[A]JavaScript code efficiency
[B]JavaScript interpreter
[C]JavaScript Compiler
[D]JavaScript writer
Show Answer
Correct Answer: JavaScript interpreter
Notes:
Answer: b
Explanation: Minification is originally based on the idea that the JavaScript interpreter ignores white space, line breaks, and of course comments, so we can save on total file size of our .js files if we remove those unneeded characters.
669). What is the purpose of the product Minify?
[A]Storing the data
[B]Streamlining the data
[C]Proxies the JavaScript file
[D] Loading the data
Show Answer
Correct Answer: Proxies the JavaScript file
Notes:
Answer: c
Explanation: Minify proxies the JavaScript file; the script tag on the page points to Minify, which is a PHP file.
670). What does the Minify set the encoding HTTP header?
[A]deflate
[B]gzip
[C] both deflate and gzip
[D]inflate
Show Answer
Correct Answer: both deflate and gzip
Notes:
Answer: c
Explanation: Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser. Minify reads the JavaScript file in, minifies it and when it responds it sets the accept encoding HTTP header to gzip, deflate.
671). What is in-built in the Minify?
[A]Dynamic compression
[B]Static compression
[C]Static content
[D]Dynamic content
Show Answer
Correct Answer: Static compression
Notes:
Answer: b
Explanation: Minification is the process of minimizing code and markup in your web pages and script files. Effectively Minify has built in HTTP static compression. This is especially useful if your web host doesn’t allow the gzipping of static content.
672). Which folder contains the Minify control panel?
[A] /min/builder/
[B]/builder/
[C]/minify/build
[D] /minify/builder
Show Answer
Correct Answer: /min/builder/
Notes:
Answer: a
Explanation: The minified file version provides the same functionality while reducing the bandwidth of network requests. To navigate to the Minify control panel, it is located in the /min/builder/.
673). Which of the following is the order of Minify process?
[A]Remove extraneous characters, gzip the response, Read
[B]Remove extraneous characters, Read, gzip the response
[C]Read, Remove extraneous characters, gzip the response
[D]Read, gzip, extract, remove
Show Answer
Correct Answer: Read, Remove extraneous characters, gzip the response
Notes:
Answer: c
Explanation: To minify JS, CSS and HTML files, comments and extra spaces need to be removed, as well as crunch variable names so as to minimize code and reduce file size. Minify reads in the content, decorates it by way of removing extraneous characters, and gzips the response.
674). YUI Compressor is analogous to ___________
[A]Minify
[B]JavaScript
[C]Both Minify and JavaScript
[D]CSS
Show Answer
Correct Answer: Minify
Notes:
Answer: a
Explanation: The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. Just like Minify, YUI Compressor strips out all of the unnecessary characters from your JavaScript, including spaces, line breaks, and comments.
675). What type of file is YUI Compressor?
[A]Binary file
[B]JAR file
[C]Text file
[D]Assembly file
Show Answer
Correct Answer: JAR file
Notes:
Answer: b
Explanation: The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. YUI Compressor is a jar file and runs from the command line. Because of this, it is easily integrated into a build process. It looks like this:
676). What is the function of a Closure Compiler?
[A]Originates the JavaScript
[B]Compiles the JavaScript
[C]Rewrites JavaScript
[D]Links the JavaScript
Show Answer
Correct Answer: Rewrites JavaScript
Notes:
Answer: c
Explanation: The Closure Compiler is a tool for making JavaScript download and runs faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. Closure Compiler runs through a number of “scorched-earth” optimizations—it unfurls functions, rewrites variable names, and removes functions that are never called (as far as it can tell).