SMF
SMF copied to clipboard
[3.0] Add an option for cdnjs to jQuery CDNs
This PR adds built-in support for loading jQuery from Cloudflare's CDN (aka "cdnjs"). While it doesn't add any additional benefits, it gives us another solid option in addition to the ones provided.
We implemented cloudflare cdn in #7933 when adding fontawesome, we can add it to jquery there
@DiegoAndresCortes, would you prefer yours or Oldies then? If you want yours, closeout and merge the theme one later.
At another layer. I think we need to abstract the CDN logic. So it's easy to add more providers in the future or remove them. As well as identify which files they can serve, then allow passing or grabbing which 'version' they should be using as defined by our software. A "local" provider is always the SMF install.
Personally, I think it would be best to push this to alpha 4 when the other template changes are targeted.
The only theme-related files this touches are a couple of language files. It doesn't modify the templates at all.
Both PR's need to wait for #7853 anyways so will just have to wait and decide later.