Performance tradeoff - CSS performance, CSS file size, HTML format

From my interpretation, google recommends that targeting HTML elements via id perform better than targeting exclusively by hierarchy, but when file size is added to this equation, what are the priorities in the end?

To be clear, there are three factors that I want to discuss with the trade-offs between them.

  • CSS performance
  • CSS filesize
  • HTML file
+3
source share
1 answer

In general, it is probably best to keep the size of the HTML files smaller, since HTML is mostly dynamic and hard to cache.

CSS , , . CSS, , , . , .

CSS, , CSS CSS.

HTML: http://developer.yahoo.com/performance/rules.html

+2

Source: https://habr.com/ru/post/1745787/


All Articles