Support for CORS and Subresource Integrity on asset registration
Permalink
I wish to have assets provided by a CDN (notably font-awesome, vuejs, bootstrap), however, I also need crossorigin= and integrity= on the the generated links.
Is there anyway this can be done at the moment when registering an asset?
If this was on a normal page type it would be easy to sort by altering the template and registering as "provides". However, my used is on single pages.
Whats the best way to achieve this on single pages that are rendered through the theme view.php.
(the single page comes from one package, the theme from another - I would like to keep the two quite separate).
Is there anyway this can be done at the moment when registering an asset?
If this was on a normal page type it would be easy to sort by altering the template and registering as "provides". However, my used is on single pages.
Whats the best way to achieve this on single pages that are rendered through the theme view.php.
(the single page comes from one package, the theme from another - I would like to keep the two quite separate).