Update patch set 1
Patch Set 1:
Short summary: Overall I'm unsure if this is worth it.
If we want to do this, we would need to move the cdnjs copy from tools to production.
This is on another domain name, so that means another DNS request and with HTTP 2 another connection. That means on browser cache miss on modern browsers this will result in worse performance. If it would be a cache hit because of sharing it with another domain, then that would improve performance. The WMF production mediawiki installation does not use a shared domain for cachable resources anymore. So we won't have any gain from sharing with those. Overall I'm unsure if this is worth it.
https://www.w3.org/TR/SRI/ dropped the caching option to not trade off privacy, so that won't help.
Though my guess is on unlikely, maybe service workers can be used cross domain in some way to help here?
Reviewer: JanZerebecki <640@e9e9afe9-4712-486d-8885-f54b72dd1951>