1.

Which of the following is the approach used to compress HTML in web servers and modern web browsers?(a) Content encoding(b) Content decoding(c) Compression algorithm – DEFLATE(d) Content minificationThe question was asked by my school principal while I was bunking the class.This interesting question is from JavaScript Minification in section Performance Measures in JavaScript of JavaScript

Answer»

The correct option is (a) Content encoding

The EXPLANATION is: Minification refers to the PROCESS of removing unnecessary or redundant data without affecting how the resource is processed by the browser. Content encoding is an approach taken by COMPATIBLE web servers and modern web browsers to compress HTML and related textual content, often in the gzip FORMAT.



Discussion

No Comment Found

Related InterviewSolutions