Cloudflare 偶尔会更新 beacon.min.js 文件以改进 Web Analytics 功能。下表包含了 beacon.min.js 文件中的更改内容和时间的日志。
The beacon script is now injected with type="module" to intentionally exclude long EOL'd (End-of-Life'd) browsers like Internet Explorer from loading the script, given they don't support it anyway. See FAQ entry for more information.
Updated Google's web-vitals library to version 5.3.0 and updated the JavaScript build output target to ES2015.
Updated Google's web-vitals library to version 4.2.4 and captured Interaction to Next Paint (INP) sub-part metrics (Input Delay, Processing Duration, Presentation Delay)
Reports additional LCP diagnostic information using web-vitals library's attribution build.
Updated Google's web-vitals library (version 3.1.1) and removed experimental server-timing header.
Updated to report new metrics such as time to first byte (TTFB), interaction to next paint (INP), and first contentful paint (FCP). Additionally, it reports navigator.webdriver, server-timing header (experimental), and protocol info (nextHopProtocol).
When using the automatic installation feature of the JavaScript Beacon (available only to customers proxied through Cloudflare - also known as orange-clouded customers), Subresource Integrity (SRI) is now enabled by default. SRI is a security feature that enables browsers to verify that resources they fetch are delivered without unexpected manipulation.
startsWith function replaced with indexOf function, which prevents rendering if multiple beacon scripts are loaded.