CSS: Which is faster for the browser? color:#fff; or color:#ffffff;

后端 未结 2 832
面向向阳花
面向向阳花 2021-01-29 10:10

First things first, yes I know the render the same color, my question is is a simple query about speed.

This is just a topic of interest regarding optimising page load s

2条回答
  •  一整个雨季
    2021-01-29 10:44

    It depends on the implementation. One browser could take 100 times longer for the long version, and another browser would be the other way around.

    Write your code so that it's readable, meaning easy to change going forward. If you want fast CSS consider using yui-compressor.

提交回复
热议问题