Device Pixel Ratio Cap
A 2x DPR Cap is a best practice in Image Optimization for handling high-resolution "Retina" screens. It involves limiting the resolution of images served to these screens to a maximum of twice the CSS pixel size. This provides excellent visual quality while preventing the excessively large file sizes associated with serving 3x or 4x DPR images, which offer little perceptible benefit.
Related web performance terms
- DOM (Document Object Model)
The DOM is a tree-like representation of all the elements in an HTML document that is created by the browser when it loads a page.
- DOM Content Loaded
DOM Content Loaded (DOMContentLoaded or DCL) is a browser event that fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.
- DOM Size
DOM Size refers to the total number of elements (nodes) and the complexity of their nesting within a page's HTML structure.
- Deferred JS loading
Deferred JS loading is a technique for loading JavaScript files in a non-blocking way using the `defer` attribute on a `<script>` tag.