Glossary
- Compression
- The process of using an algorithm to reduce the size of a piece of data. Compression works by reducing redundant content within the data, or data that does not significantly affect quality.
- Encoding
- An encoding is a way of storing a piece of content. Image data, for example, is encoded into a format like JPEG, PNG, or GIF when stored in a file. The encoding may include features like compression, alpha transparency (for image), or metadata storage.
- Lossless
- A type of compression algorithm that does not reduce the quality of the data being compressed. A piece of data will remain unchanged if it is losslessly compressed and uncompressed.
- Lossy
- A type of compression algorithm that does not preserve the original data exactly. For example, a lossy image compression algorithm may remove certain fine details from the image.
- Minification
- The process of automatically rewriting code into a form that is smaller. This term may also be used to describe certain compiler-like optimizations to improve performance or remove unused code.
Images
- Alpha Channel
- The alpha channel in an image is the color channel (see below) that represents the transparency of each pixel in the image. A pixel with an alpha channel value of zero is transparent. A pixel with an alpha channel value of 255 (or 100%) is opaque.
- Alpha Transparency
- The ability for a color or image to be slightly or fully transparent. An image with alpha transparency will blend with its background. The amount of transparency is defined by an image's alpha channel.
- Color Channel
- A color channel is a color value for each pixel in an image. When an image is encoded with RGB, it has a red, green, and blue color channel. Each channel has a single number for each pixel that represents the intensity of that color at the particular pixel. For instance, a "white" pixel would have its red, green, and blue color channels each set to 255 (or 100%). A firetruck red pixel would have its red channel set to 255, while the blue and green channels would be set to zero.
CSS
- Declaration
- A declaration is an item within a rule set that applies a given property to the set of matched elements. E.g.:
color: red;
- Rule
- A rule is another name for a "declaration."
- Rule Set
- A rule set is a selector and zero or more declarations wrapped in curly braces. E.g.,
.myElement {font-weight: bold;}
- Selector
- A selector is the string which describes which elements a rule set applies to. E.g.,
#myElement .withAClass p
JavaScript
- Closure
- A closure is a first-class function that references variables from another function after the second function has finished executing. These references are made with lexical scope.
- Event
- An object representing something that happened in the browser and the triggering of JavaScript code that has been put in place to accept it.
- JIT Compilation
- JIT compilers, or Just-In-Time compilers, are a cross between interpreters and static compilers. Code running in a JIT-enabled interpreter will run slowly as the interpreter finds out how the code works. Then, the JIT compiler will replace the slow code with fast, optimized code.
- Lexical Scope
- Lexical scoping is a feature of JavaScript that allows a function to access the variables of the function that it is running within. If one function is inside another function, the inner function can access and manipulate the outer function's variables.
- Run to Completion
- The process of triggering a JavaScript function, then waiting for all subsequent synchronous processing to complete.