In T336526 we will adopt Codex markup in Vector skin. Ignoring CSS for cached HTML, this will lead to an overall increase in 1.7kb of render blocking CSS which takes us over our new Vector performance budget.
Inspecting the module, it seems various styles are unused on page load namely:
- .cdx-menu-item
- .cdx-search-result
- .cdx-thumbnail
- cdx-text-input
(removing these would save around 0.5kb)
@mask-image rules also seem to add 0.5kb
The biggest issue seems to be nesting however. Could rules such as .cdx-search-input .cdx-text-input__icon.cdx-text-input__start-icon be simplified to single word selectors such as .cdx-search-input__input__icon so they gzip better?