Which CSS selectors or rules can significantly affect front-end layout / rendering performance in the real world?

后端 未结 6 2184
情书的邮戳
情书的邮戳 2020-12-12 11:56

Is it worth worrying about CSS rendering performance? Or should we just not worry about efficiency at all with CSS and just focus on writing elegant or main

6条回答
  •  旧时难觅i
    2020-12-12 12:50

    isn't css a irrelevant way to make it faster, it must be the last thing you look at when you look at performance. Make your css in what ever way that suites you, compile it. and then put it in the head. This might be rough but their are loads of other things to look for when your looking in to browser performance. If you work at a digital bureau you wont get paid to do that extra 1ms in load time.

    As i commented use pagespeed for chrome its a google tool that analyze the website in 27 parameters css is 1 of them.

    My post just concern exactly, wouldn't rather have around 99% of web users be able to open the website and see it right, even the people with IE7 and such. Than closing out around 10% by using css3, (If it turns out that you can get an extra 1-10ms on performance).

    Most people have atleast 1mbit/512kbit or higher, and if you load a heavy site it takes around 3 secounds to load, but you can save 10ms maybe on css??

    And when it comes to mobile devices you should make sites just for mobiles so when you have a device with screen size less than "Width"px, you have a separate site

    Please comment below this is my perspective and my personal experience with web development

提交回复
热议问题