Firefox doesn't include Google Lighthouse built-in (Lighthouse is a Chrome project). But Firefox has equivalent tools, and there are ways to run Lighthouse against Firefox. Here's what you can use.
What Lighthouse Measures
Google Lighthouse audits:
- Performance: LCP, FID, CLS, TTFB, and other Core Web Vitals
- Accessibility: ARIA, contrast, keyboard navigation, screen reader compatibility
- Best Practices: HTTPS, deprecated APIs, security headers
- SEO: Meta tags, robots, mobile-friendliness
- PWA: Service worker, manifest, installability
Firefox's tools cover most of these but in different panels.
Firefox Equivalents for Lighthouse Audits
Performance
Firefox Performance panel (DevTools → Performance):
- Record a session → see flame chart, FPS, network waterfall
- Check for long tasks (> 50ms)
- Measure time to interactive
Firefox's Web Vitals via Console:
// Measure LCP (Largest Contentful Paint)
new PerformanceObserver((entries) => {
const lcp = entries.getEntries().at(-1);
console.log('LCP:', lcp.renderTime || lcp.loadTime, 'ms');
}).observe({ type: 'largest-contentful-paint', buffered: true });
// Measure CLS (Cumulative Layout Shift)
let cumulativeLS = 0;
new PerformanceObserver((entries) => {
for (const entry of entries.getEntries()) {
if (!entry.hadRecentInput) cumulativeLS += entry.value;
}
console.log('CLS so far:', cumulativeLS);
}).observe({ type: 'layout-shift', buffered: true });
// Measure FID (First Input Delay)
new PerformanceObserver((entries) => {
for (const entry of entries.getEntries()) {
console.log('FID:', entry.processingStart - entry.startTime, 'ms');
}
}).observe({ type: 'first-input', buffered: true });
about:performance: Shows per-tab performance without full profiling.
Accessibility
Firefox Accessibility Panel (DevTools → Accessibility):
- Run automated accessibility checks: click "Check for issues"
- Audit results show keyboard, text labels, contrast issues
- Simulates color blindness (protanopia, deuteranopia, etc.)
This is genuinely comparable to Lighthouse's accessibility audit.
Best Practices
Firefox Security Panel (Click lock icon → More info, or Network panel → Security tab):
- TLS version and cipher
- Certificate validity
DevTools Console: Watches for:
- Mixed content warnings
- Deprecated API usage
- Security policy violations
SEO
Firefox doesn't have a dedicated SEO audit panel. Use:
- Inspector: Check meta tags, Open Graph tags
-
Console:
document.querySelector('meta[name="description"]').content
Running Lighthouse on Firefox
Method 1: Lighthouse CLI
Lighthouse CLI can audit pages via Chrome only — it launches Chrome specifically. You can't directly point it at Firefox.
npm install -g lighthouse
lighthouse https://example.com --output html --view
This always uses Chrome/Chromium.
Method 2: Firefox-compatible Lighthouse alternative
axe DevTools extension: Available for Firefox on AMO. Runs comprehensive accessibility audits directly in Firefox DevTools. The free version covers WCAG 2.x issues.
Method 3: Web Vitals extension
There's no official Web Vitals extension for Firefox, but you can inject the measurement code manually via Console (see JavaScript snippets above).
Method 4: WebPageTest
WebPageTest.org can test pages using Firefox. It measures Core Web Vitals and other performance metrics. Free for basic use.
Firefox Performance Panel vs Chrome Lighthouse Performance
What Firefox Performance Panel gives you:
- Frame-by-frame JavaScript execution
- Long task detection
- Network request waterfall
- Memory timeline
What Lighthouse performance gives you (Chrome-specific):
- Single performance score (0-100)
- LCP, TBT, SI, TTI, CLS specific values
- Opportunities and diagnostics
The gap: Lighthouse gives a standardized score that's easy to communicate. Firefox's tools give more detail but no single score.
Practical recommendation: Use Firefox's Performance panel for deep debugging. Use Lighthouse (via Chrome or CI) for scoring and reporting.
PageSpeed Insights (Google's Web Version)
PageSpeed Insights (pagespeed.web.dev) runs Lighthouse in the cloud and shows results without needing to install anything.
From Firefox: Navigate to pagespeed.web.dev → enter your URL → get full Lighthouse report.
This is the easiest way to get a Lighthouse report while working in Firefox.
Firefox's Own Performance Measurement
Firefox's DevTools Performance Panel is actually more powerful than Chrome's for detailed JavaScript profiling. The difference is the presentation:
Firefox's flame chart: Shows call stacks with time. Excellent for finding what's taking long in JavaScript.
Chrome's Performance panel: Similar, but with Lighthouse's specific timing metrics (LCP, etc.) overlaid.
For finding slow JavaScript, Firefox's profiler is strong. For getting Core Web Vitals numbers, use Chrome or PageSpeed Insights.
Testing on Real Mobile vs Simulated
Neither Firefox nor Chrome DevTools' mobile simulation is a substitute for real device testing.
Real device testing with Firefox Android:
- Enable Developer Mode on Android
- Connect via USB
- about:debugging in desktop Firefox → detect Android device
- See actual performance on a real mobile browser
Real mobile devices have:
- Slower CPUs (4x-6x slower than desktop benchmark)
- Different memory constraints
- Real touch events
- Real network (not simulated throttling)
Core Web Vitals in Firefox: Summary
| Metric | Measure in Firefox |
|---|---|
| LCP | PerformanceObserver in Console |
| CLS | PerformanceObserver in Console |
| FID | PerformanceObserver in Console |
| TTFB | Network panel → first request → TTFB timing |
| TTI | Performance panel → main thread timeline |
| Overall score | Use PageSpeed Insights or Chrome Lighthouse |
For day-to-day development: Firefox's performance tools are excellent for debugging the cause of performance issues. For measuring scores against Google's benchmarks: use Lighthouse (Chrome/CI).
Top comments (0)