MCPcopy Create free account
hub / github.com/chokcoco/iCSS / getPropertyPerformanceImpact

Method getPropertyPerformanceImpact

MCP/scripts/fetch-issues.js:1138–1145  ·  view source on GitHub ↗
(prop)

Source from the content-addressed store, hash-verified

1136 }
1137
1138 getPropertyPerformanceImpact(prop) {
1139 const highImpact = ['box-shadow', 'text-shadow', 'filter', 'backdrop-filter'];
1140 const mediumImpact = ['border-radius', 'opacity', 'transform'];
1141
1142 if (highImpact.some(p => prop.includes(p))) return 'high';
1143 if (mediumImpact.some(p => prop.includes(p))) return 'medium';
1144 return 'low';
1145 }
1146
1147 getPropertyBestPractices(prop) {
1148 const practices = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected