Remove polyfill.io script from MathJax configuration - #1
Conversation
The polyfill.io CDN changed ownership in 2024 and was used in a supply-chain attack to inject malicious redirects/pop-ups. It was only needed as a legacy MathJax shim for old browsers (e.g. IE11) and current MathJax guidance recommends removing it. MathJax loads fine without it on modern browsers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G5vc9wqkCztZEk3xJVse2K
There was a problem hiding this comment.
Code Review
This pull request removes the polyfill.io script from the extra_javascript configuration in mkdocs.yml. I have no feedback to provide as there are no review comments.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
This PR updates the MkDocs site configuration by removing the polyfill.io ES6 polyfill CDN entry while keeping MathJax enabled for equation rendering.
Changes:
- Removed
https://polyfill.io/v3/polyfill.min.js?features=es6fromextra_javascript - Retained the MathJax v3 CDN script for TeX/MathML rendering
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Removed the polyfill.io CDN script from the MathJax configuration in mkdocs.yml.
Changes
https://polyfill.io/v3/polyfill.min.js?features=es6script reference from theextra_javascriptsectionhttps://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js) intactDetails
The polyfill.io script was used to provide ES6 compatibility for older browsers. This removal suggests either:
https://claude.ai/code/session_01G5vc9wqkCztZEk3xJVse2K