mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-11-30 18:14:33 -06:00
The inline check in the layout only caught IE11, via two IE-specific globals. Browsers like Chrome 49 sailed past it and then died parsing our bundles, leaving a blank page rather than the noscript fallback. Replace the IE11 sniff with a feature check for globalThis and String.prototype.replaceAll. replaceAll is the stricter of the two, putting the cutoff around Chrome 85 / Firefox 77 / Safari 13.1, and IE11 lacks both, so this subsumes the check it replaces rather than adding to it. The cutoff is a proxy for "can this browser parse our bundles" rather than a measured floor, so it may drift as dependencies move on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>