--- ## Back Forward Cache **Script:** `scripts/Back-Forward-Cache.js` --- ## CSS complexity Find what the CSS of the page carries that costs bytes and can go: images and fonts embedded as data: URLs, @import rules that delay the stylesheets they load, empty rules, repeated selectors, @keyframes that nothing uses and atypically complex selectors. The snippet reads every stylesheet of the page, including imported ones, adopted ones and those in shadow roots, and counts them the way css-analyzer by Project Wallace does. **Script:** `scripts/CSS-Complexity.js` --- ## CSS media queries analysis Analyze all @media rules in CSS stylesheets that target viewports bigger than a breakpoint (default: 768px). Narrower screens download and parse that CSS without using it. The snippet groups the rules by distinct query, the way CSS analytics tools such as Project Wallace report at-rules, and breaks them down by stylesheet. **Script:** `scripts/CSS-Media-Queries-Analysis.js` --- ## Cache Strategy Analysis **Script:** `scripts/Cache-Strategy-Analysis.js` --- ## Client Side Redirect Detection **Script:** `scripts/Client-Side-Redirect-Detection.js` --- ## Compression audit Finds text-based resources (JavaScript, CSS, HTML, JSON, SVG, XML and TTF/OTF fonts) served without HTTP compression, and estimates how many bytes gzip or brotli would save. Compressing text typically shrinks it by 60–80%, so an uncompressed script or stylesheet is one of the cheapest fixes for slow loading. **Script:** `scripts/Compression-Audit.js` --- ## Content visibility Detect and analyze all elements using content-visibility: auto on a page. This CSS property is a powerful rendering optimization that allows browsers to skip layout and painting work for offscreen content, significantly improving initial page load performance. **Script:** `scripts/Content-Visibility.js` --- ## Critical CSS detection Analyzes the CSS loading strategy of a page, identifying render-blocking stylesheets, measuring their size against the critical 14 KB budget, and detecting whether critical CSS is properly inlined for above-the-fold content. **Script:** `scripts/Critical-CSS-Detection.js` --- ## Event processing time Analyzes the time spent in each phase of page navigation, from initial redirect to the load event. This helps identify bottlenecks in the page loading process and understand where time is being spent. **Script:** `scripts/Event-Processing-Time.js` --- ## First contentful paint (FCP) Quick check for First Contentful Paint, the metric that marks when the browser renders the first piece of DOM content, text, image, canvas, or SVG. FCP measures the user's perception of whether the page is loading. **Script:** `scripts/FCP.js` **Thresholds:** | Rating | Time | Meaning | |--------|------|---------| | 🟢 Good | ≤ 1.8s | Content appears quickly | | 🟡 Needs Improvement | ≤ 3s | Noticeable delay | | 🔴 Poor | > 3s | Users may perceive the page as broken | --- ## Find above the fold lazy loaded images Detect images with lazy loading that are incorrectly placed above the fold (in the viewport). Lazy loading above-the-fold images is a common performance anti-pattern that can significantly harm your Largest Contentful Paint (LCP) score. **Script:** `scripts/Find-Above-The-Fold-Lazy-Loaded-Images.js` --- ## Find images with loading lazy and fetchpriority Detects images that have both loading="lazy" and fetchpriority="high" - a contradictory combination that indicates a misconfiguration. **Script:** `scripts/Find-Images-With-Lazy-and-Fetchpriority.js` --- ## Find non lazy loaded images outside of the viewport Identifies images that are loaded eagerly but not visible in the initial viewport, representing wasted bandwidth and parsing time that delays page interactivity. The snippet analyzes all elements to find optimization opportunities for lazy loading. **Script:** `scripts/Find-non-Lazy-Loaded-Images-outside-of-the-viewport.js` --- ## Find render-blocking resources Identifies resources that block the browser from rendering the page. These resources must be fully downloaded and processed before the browser can display any content, directly impacting First Contentful Paint (FCP) and Largest Contentful Paint (LCP). **Script:** `scripts/Find-render-blocking-resources.js` --- ## First And Third Party Script Info **Script:** `scripts/First-And-Third-Party-Script-Info.js` --- ## First and third party script timings Analyzes detailed timing phases for all scripts, comparing first-party vs third-party performance. This helps identify slow connection phases, DNS issues, or server response problems. **Script:** `scripts/First-And-Third-Party-Script-Timings.js` --- ## Fonts preloaded, loaded, and used above the fold Analyzes font loading strategy by comparing preloaded fonts, loaded fonts, and fonts actually used above the fold. This helps identify optimization opportunities and wasted resources. **Script:** `scripts/Fonts-Preloaded-Loaded-and-used-above-the-fold.js` --- ## Inline CSS info and size Analyzes all inline