← All changes
|
jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn-setup.php
+28
-0
16.2-beta
→
16.3
View file →
| @@ -1,0 +1,28 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Package description here | |
| 4 | + * | |
| 5 | + * @package automattic/jetpack-image-cdn | |
| 6 | + */ | |
| 7 | + | |
| 8 | +namespace Automattic\Jetpack\Image_CDN; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * Class description. | |
| 12 | + */ | |
| 13 | +class Image_CDN_Setup { | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * Initialize Image CDN. | |
| 17 | + */ | |
| 18 | + public static function load() { | |
| 19 | + \Automattic\Jetpack\Assets::add_resource_hint( | |
| 20 | + array( | |
| 21 | + '//i0.wp.com', | |
| 22 | + ), | |
| 23 | + 'preconnect' | |
| 24 | + ); | |
| 25 | + | |
| 26 | + Image_CDN::instance(); | |
| 27 | + } | |
| 28 | +} | |