Leaving out the last semicolon of a CSS block

后端 未结 9 656
梦毁少年i
梦毁少年i 2020-11-27 15:43

A couple of questions concerning this:

  • Is it good practice?
  • Will it, on a large scale, result in better load times?
  • Can it result in browsers
9条回答
  •  心在旅途
    2020-11-27 16:44

    For CSS, I tried this out on IE9, FF, GC, Safari, and Opera, and it didn't make a difference.

    As for Javascript, I got an error on FF and GC, so I would say don't do this on scripts. As for load time, the difference will not be in any way noticeable.

提交回复
热议问题