Browse
For agents
About
Performance Lab
/
2.1.0
Performance Lab
v2.1.0
Switch version
trunk
1.0.0
1.0.0-beta.1
1.0.0-beta.2
1.0.0-beta.3
1.0.0-rc.1
1.1.0
1.2.0
1.3.0
1.4.0
1.5.0
1.6.0
1.7.0
1.8.0
1.9.0
2.0.0
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
2.6.1
2.7.0
2.8.0
All 44 releases
Overview
Code
performance-lab
/
modules
/
images
/
fetchpriority
/
load.php
load.php
in Performance Lab 2.1.0, at modules/images/fetchpriority/load.php
17 lines
394 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
* Module Name: Fetchpriority
4
* Description: Adds a fetchpriority hint for the primary content image on the page to load faster.
5
* Experimental: Yes
6
*
7
*
@since
1.8.0
8
*
@package
performance-lab
9
*/
10
11
//
Do not load the code if it is already loaded through another means.
12
if
(
function_exists
(
'
fetchpriority_img_tag_add_attr
'
)
)
{
13
return
;
14
}
15
16
require_once
__DIR__
.
'
/hooks.php
'
;
17