You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load times and (maybe) performance could be improved if we mangle CSS classes. Mangling is the process of reduce the size of arbitrary attributes like classes and ids. The problem with manual mangling is that the maintainment cost increases.
Use an @apply approach to merge several classes in one like TailwindCSS recommends. Exists something like that in pure CSS?
Style the whole grid item in CSS with parent-child selectors, just ul.grid > li .... This could be the most straightforward solution. If we comment this CSS selectors we can't reduce the maintainment cost generated.
Kind of issue
Description
We have a lot of code to render each icon grid item.
Produced HTML for each icon
Load times and (maybe) performance could be improved if we mangle CSS classes. Mangling is the process of reduce the size of arbitrary attributes like classes and ids. The problem with manual mangling is that the maintainment cost increases.
Some ideas
background-color
bybackground
inline CSS property (Some mangling, refactoring and fix PDF download #287)@apply
approach to merge several classes in one like TailwindCSS recommends. Exists something like that in pure CSS?ul.grid > li ...
. This could be the most straightforward solution. If we comment this CSS selectors we can't reduce the maintainment cost generated.order-color
andorder-alpha
attributes into oneorder
attribute and separate the values by a character like-
. (Some mangling, refactoring and fix PDF download #287)xmlns
attribute from SVGs asxmlns
attributes are not needed inlining SVGs in HTMLs (see this question in Stackoverflow). (Some mangling, refactoring and fix PDF download #287)href
and previewsrc
attributes. (Some mangling, refactoring and fix PDF download #287)Do you have more ideas?
The text was updated successfully, but these errors were encountered: