diff --git a/README.md b/README.md index 6bd0e10..5acd6b9 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ A checklist to make sure you website will be fast! * Universal selectors like `*, [disabled], [type=“text”]`, etc. are very expensive for the browser to match, as every element in the DOM must be checked. * Avoid deeply nested dependent selectors * The descendant selector is very costly, as the browser must check for a match with every descendant element. On a complex web page, this can result in thousands and thousands (perhaps even more) of descendant selector searches. +* Use media queries to load files based on use case + +```css + + + + +``` ## JS