Menu

How to build a one-page website that scores 90+ on Lighthouse
📰

How to build a one-page website that scores 90+ on Lighthouse

DEV Community: html·Yogeshwaran Tech Tools·7 days ago
#RrBjUuCY
#devto2#devto#dev#lighthouse#security
Long article (516 words) — no AI summary yet.
Reading 0:00
15s threshold

A small business site does not need a framework. Plain HTML and CSS can score 90+ on Lighthouse for performance, accessibility, best practices and SEO with a few habits. This is the checklist I follow when I build one-page sites.

1. Start with a minimal, valid skeleton

<!doctype html> <html lang = "en" > <head> <meta charset = "utf-8" > <meta name = "viewport" content = "width=device-width, initial-scale=1" > <title> Clear, specific page title (50-60 characters) </title> <meta name = "description" content = "One sentence that says what you offer and where." > <link rel = "canonical" href = "https://example.com/" > </head>

Enter fullscreen mode

Exit fullscreen mode

The language attribute, viewport, title and description fix several accessibility and SEO audits at once.

2. Keep it light

One CSS file or an inline <style> for a single page. No CSS framework.

No JavaScript unless something needs it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.