is there any limit on css file size?

前端 未结 11 1994
Happy的楠姐
Happy的楠姐 2020-12-09 19:18

I am using ASP.NET MVC to develop a site. The CSS file has grown to 88KB and is having a little more 5,000 lines. I noticed recently that styles added at the end are not the

11条回答
  •  北海茫月
    2020-12-09 20:13

    Theoretically, there isn't a limit.

    Practically, most normal browsers (FF, Chrome, Opera, Safari) can handle whatever you throw at them. Some of the older and/or mobile browsers however (Access NetFront, for one - bundled with many mobile phones) run into problems with largish pages (about 100KB and above) and throw all kinds of errors.

    TL;DR: No, unless you're trying to support all kinds of weird browsers.

提交回复
热议问题