rEIME/2e1aa885b05dmaster
rEIME/
2e1aa885b05dmaster
/
/
README.md
README.md
ImageMetrics
ImageMetrics is a MediaWiki extension for logging various image-related frontend metrics such as loading speed. It requires MediaWiki 1.23+.
Sample configuration:
require_once( "$IP/extensions/EventLogging/EventLogging.php" ); // dependency require_once( "$IP/extensions/ImageMetrics/ImageMetrics.php" ); $wgImageMetricsSamplingFactor = 1000; // log 1:1000 requests
If your images are served from a different domain, you might want to add a Timing-Allow-Origin: * header to them to get more accurate performance data.
For more information, see the extension's documentation on MediaWiki.org:
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL