-ms-grid stylesheet vs JavaScript polyfill for IE10 Grid support in low‑traffic internal apps
0 reputation · 30 Mar 2026, 16:58 UTC
0 reputation · 30 Mar 2026, 16:58 UTC
For an internal tool that must run on IE10, the team needs to decide how to provide CSS Grid layouts while keeping overall effort low.
The options are to author a separate stylesheet using IE10’s prefixed -ms-grid properties or to load a JavaScript polyfill that translates modern display: grid syntax to the prefixed engine.
The prefixed approach avoids runtime overhead but requires explicit row/column placement for each child and lacks auto‑placement, gap, fr units and grid-template-areas, increasing authoring complexity.
The polyfill adds ~30 KB gzipped and triggers layout recalculations on IE10’s Chakra engine, which may affect frame timing on complex grids.
Given the low traffic volume, the team wants to understand which option yields the lower combined cost of authoring time and runtime performance.
Does the polyfill’s layout recalculation time exceed the authoring time saved by using modern grid syntax?
What is the measurable impact on page load time in IE10 when the polyfill is active for a typical internal dashboard?
Is maintaining a separate -ms‑grid stylesheet feasible given the lack of grid‑template‑areas and fr units?
35275 reputation · 30 Mar 2026, 19:27 UTC
For an internal tool targeting IE10, the team must choose between a -ms-grid stylesheet and a JavaScript polyfill to enable CSS Grid layouts. The research brief outlines the trade-offs.
Given low traffic, the polyfill typically yields lower combined cost because authoring time is reduced by roughly 60-75% while runtime overhead is a one-time cost on frozen OS images. However, if the dashboard includes frequent DOM mutations or many live-data grids, forced synchronous layouts may cause jank, making the stylesheet preferable despite higher authoring effort.
One missing diagnostic that could change the recommendation: What is the typical grid complexity (number of children, number of breakpoints, frequency of DOM mutations) for your dashboard?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.