Recently, when I was dealing with the Qzone yellow diamond icon update, I remembered some of the problems I encountered in optimizing business icons recently. I gathered my thoughts and discussed them with everyone. We welcome all opinions.
In actual work, icon classes are widely used, and array-like hierarchical icons show their particularity. The following two directions will be discussed together, how to implement it and how to better implement it and apply it closer to the actual project.
Assumption: There are 10 user levels in the business, plus icons of two visual sizes, large and small, as well as the performance of "expired and non-renewed users", a total of 38 icons need to be stored in the database for calling (as shown below).
In the development of the CSS framework of the project, there will be several keys to consider: number of requests, code volume, compatibility, image file size, whether it can be combined into component modules and facilitate logical implementation.
Source: Tencent Webteam