📜 ⬆️ ⬇️

Overclocking CSS selectors. Part 2: Transitivity

After the article “Overclocking CSS selectors: is it worth it?”, It was suggested to consider several additional cases that take into account the transitivity of selectors (for example, how much faster is ac than than abc , or vice versa). This study is devoted just to the analysis of such cases.

Technique



The technique and error reduction were discussed in detail in the first article ; I will not dwell on them very much. Let me just say that with the increase in the number of classes and identifiers, Opera has become much slower (3 times) to display the code (while its total volume has increased by about 1.5-2 times). Most likely, the next article will include a study of the influence of the number of classes / identifiers / code size on the overall browser performance.
')
Once again, the actual value is the relative change in the page display time within the same browser depending on a particular case (and not in any way absolute or the comparison of different browsers: in addition there are too many unaccounted factors).

read further on webo.in →

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


All Articles