Jump to content

Schema:ImageMetricsLoadingTime

PHP logging

EventLogging::logEvent( 'ImageMetricsLoadingTime', 10078363, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ImageMetricsLoadingTime": 10078363
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ImageMetricsLoadingTime', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 10078363
description"Performance data for an image load."
properties
imageType
type"string"
requiredtrue
enum
"filepage-main"
description"The type of image that is being measured. * filepage-main: the main thumbnail on a file page"
navigationType
type"string"
requiredfalse
enum
"navigate"
"reload"
"back_forward"
description"Navigation type, as defined by the [https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#dom-performancenavigation-type NavigationTiming API]. Omitted for browsers which lack NavigationTiming support."
ownLoadingTime
type"number"
description"Time in ms it took the load the image, relative to when the browser requested it. Omitted for browsers which lack ResourceTiming support."
fullLoadingTime
type"number"
description"Time in ms it took the load the image, relative to when the browser started to load the page."
fallbackFullLoadingTime
type"number"
description"Time in ms it took the load the image, relative to when the browser started to load the page. Uses an onload handler; less precise but does not rely on ResourceTiming support."
fetchDelay
type"number"
description"Time in ms between starting to load the image and receiving the first byte. Optional - even browsers with ResourceTiming support can be unreliable in reporting this."
size
type"integer"
description"Size of file in bytes. Truncated for privacy reasons. Might be omitted when the information is not easily available."
fileType
type"string"
description"Extension of the file"
country
type"string"
description"Client's country (per geolocation)"
isHttps
type"boolean"
requiredtrue
description"Whether the content was loaded over https or not"
isAnon
type"boolean"
requiredtrue
description"Whether the user is logged in or not"
samplingFactor
type"integer"
requiredtrue
description"Sampling factor"