Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 767 Bytes

what_is_minification.md

File metadata and controls

21 lines (14 loc) · 767 Bytes

What is Minification?

Minification is the process of removing unnecessary characters from JavaScript code, such as whitespace, comments, and newline characters, without affecting the functionality of the code. This is done to reduce the file size and improve the performance of web applications by decreasing load times.

Example:

// Original Code
function sum(a, b) {
  return a + b;
}

// Minified Code
function sum(a,b){return a+b;}

Tags: intermediate, JavaScript, optimization

URL: https://www.tiktok.com/@jsmentoring/photo/7462868427363994913