Browse
For agents
About
Flying Images: Optimize and Lazy Load Images for Faster Page Speed
/
trunk
Flying Images: Optimize and Lazy Load Images for Faster Page Speed
vtrunk
Switch version
trunk
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.1.0
2.1.1
2.2.0
2.2.1
All 57 releases
Overview
Code
nazy-load
/
resource-hints.php
resource-hints.php
in Flying Images: Optimize and Lazy Load Images for Faster Page Speed trunk, at resource-hints.php
12 lines
357 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
3
add_action
(
'
wp_head
'
,
'
flying_images_add_resource_hints
'
)
;
4
function
flying_images_add_resource_hints
(
)
{
5
$
cdn_enabled
=
get_option
(
'
flying_images_enable_cdn
'
)
;
6
if
(
$
cdn_enabled
)
{
7
?
>
8
<
link
rel
=
"
dns-prefetch
"
href
=
"
https://cdn.statically.io/
"
>
9
<
link
rel
=
"
preconnect
"
href
=
"
https://cdn.statically.io/
"
crossorigin
>
10
<
?
php
11
}
12
}
;