Frontend Checklist
A pre-launch checklist for a landing website: meta tags, HTML, CSS, JavaScript, media, performance, SEO, accessibility, security and Hugo builds.
13 min readUpdated
A checklist to go through before launching a landing website, and again after large changes. It is based on David Dias’s Front-End Checklist and Front-End Performance Checklist, and on Hugo Best Practices for sites built with Hugo.
Each item has a priority: high items block a launch, medium items should be fixed soon after, low items are good practice. Most items apply to any static or server-rendered site; the Hugo section applies only to Hugo projects. The list ends with a short pre-launch summary of the items that are most often missed.
Head and meta tags
These tags go in the <head> of every page and decide how browsers and search engines read it.
- Doctype (high): the HTML5 doctype
<!DOCTYPE html>is the first line of every page. - Charset (high): UTF-8 is declared as the first meta tag in
<head>. - Viewport (high):
width=device-width, initial-scale=1is set. -
viewport-fit(low):viewport-fit=coveris added for devices with a notch:<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">. - Title (high): every page has a unique, descriptive
<title>of under 55 characters. - Meta description (high): every page has its own description of under 150 characters.
-
keywordsmeta tag (medium): either filled from the page’s tags or categories, or removed. Google ignores it, but an empty tag looks careless. - Canonical URL (high):
<link rel="canonical">is present to avoid duplicate content. - Language attribute (high):
<html lang="...">matches the language of the page. - Alternate
hreflang(low):hreflanglinks point to every translation of the page. -
x-defaulthreflang(medium):<link rel="alternate" hreflang="x-default" href="..." />names the fallback page for other languages, as Google recommends. - CSS before JavaScript (high): all stylesheet
<link>tags come before any<script>tag in<head>.
Social sharing previews
Open Graph and Twitter (X) tags control the card that appears when the page is shared.
-
twitter:card(medium): the card type is declared, for examplesummary_large_image. Twitter (X) needs it to show a preview card. - Open Graph tags (medium):
og:type,og:title,og:description,og:image,og:url,og:localeandog:site_nameare present. -
og:image:widthandog:image:height(low): the image size is given, so crawlers can render the card without downloading the image first.
Favicons and web app manifest
- Favicon files (medium): all common sizes exist: 16x16, 32x32, 192x192, 512x512,
apple-touch-iconandfavicon.ico. - Web manifest (medium):
site.webmanifestexists and is linked from<head>. - Manifest
nameandshort_name(high): both fields hold the site name. Install prompts and bookmarks use them. - Theme color (low):
<meta name="theme-color">matches the brand color.
HTML
- Semantic HTML5 (high):
<header>,<nav>,<main>,<section>,<article>,<aside>and<footer>are used for what they mean. - 404 page (high): a custom 404 page exists, with inline CSS so that it does not depend on an external stylesheet.
- 5xx page (medium): a custom 500 page exists, also with inline CSS.
- No template leftovers (high): placeholder text, debug strings and framework boilerplate are removed from production templates.
- No dead code (low): unused template blocks, variables and commented-out code are removed.
- No unused source files (low): unused SCSS and JavaScript source files are removed from the project.
- All strings translated (medium): templates contain no hard-coded UI text; all user-facing strings come from the i18n files.
-
<noscript>fallback (medium): visitors with JavaScript disabled see a short message. - HTML validation (high): all pages pass the W3C Markup Validation Service without errors.
- No broken links (high): internal and external links all resolve. The W3C Link Checker finds broken ones.
- Clean production output (low): HTML comments and unneeded whitespace are stripped from the built pages.
CSS
- Preprocessor (low): a CSS preprocessor such as Sass/SCSS or Less keeps the styles maintainable.
- Autoprefixer (high): vendor prefixes are generated by Autoprefixer or PostCSS, not written by hand.
- Minification (high): all CSS is minified in production.
- Fingerprinting (medium): CSS file names contain a content hash, so browsers fetch a new file after each change.
- Single bundle (high): CSS is concatenated into one file, or a few files when served over HTTP/2.
- Reset or normalize (high): a CSS reset, normalize or reboot is included and up to date.
- Unused CSS removed (medium): unused selectors are purged with PurgeCSS or a similar tool, and full framework imports are trimmed to the components in use.
- Critical CSS (medium): the CSS for above-the-fold content is inlined in
<head>to speed up First Contentful Paint (FCP). - No inline CSS in
<body>(high): styles live in external files or in<head>, apart from critical CSS. - Unique IDs (high): every element ID is unique on its page.
- Responsive design (high): the layout is tested at 320, 768, 1024 and 1440 pixels wide.
- Print stylesheet (medium): print-specific styles are provided.
- CSS validation (medium): the CSS passes the W3C CSS Validation Service.
- Right-to-left support (medium): on a multilingual site, pages are tested in a right-to-left language.
JavaScript
- No inline JavaScript in
<body>(high): scripts live in external files, not mixed with the HTML. - Minification (high): all JavaScript is minified in production.
- Fingerprinting (high): JavaScript file names contain a content hash.
- Non-blocking loading (high): scripts load with
deferorasync. - Few bundles (high): scripts are bundled into as few files as practical to reduce HTTP requests.
- No
javascript:void(0)(medium): actions use a<button>element; links keep a realhref, withevent.preventDefault()where a script takes over. - Current libraries (medium): all libraries are on their latest stable versions.
- Dependency size (low): every external library is needed and as small as possible. Plain JavaScript is often enough for simple features.
- Linting (medium): ESLint or another linter reports no errors.
- No
console.login production (low): debug logging is removed from production builds.
Fonts
- WOFF2 (high): web fonts are served as WOFF2. A WOFF fallback is only needed for very old browsers.
- Total font size under 300 KB (medium): all font files together, icon fonts included, stay under 300 KB.
-
font-display: swap(medium): every@font-facerule, icon fonts included, usesfont-display: swap, so text stays visible while the font loads instead of a Flash of Invisible Text (FOIT). - Preconnect to the font host (medium): with Google Fonts or a similar service,
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>is in<head>. - System font stack considered (low): you have weighed whether a system font stack is enough; it needs no download at all.
- Icon font audit (low): if an icon font is used, the full font is really needed. For a handful of icons, inline SVG is lighter.
Images
- Compression (high): all images are compressed without visible quality loss, with a target of under 200 KB per image.
- No oversized images (high): content images are resized for the web, not raw camera or design exports.
- Modern formats (medium): images use WebP or AVIF, with fallbacks where needed.
- No duplicate formats (low): when an image exists in several formats, a
<picture>element serves them with a fallback, or the unused files are removed. - SVG optimization (medium): large SVG files are optimized with SVGO, for example through SVGOMG.
- Lazy loading (medium): images below the fold use
loading="lazy". - Descriptive
alttext (high): every<img>hasalttext that describes the image, not just the brand name. -
widthandheight(medium): images declare their dimensions to prevent Cumulative Layout Shift (CLS). - Responsive images (medium):
srcsetand<picture>serve an image size that fits the viewport.
Video and media
- Hosting (high): large videos are hosted on a CDN or a streaming platform such as YouTube or Vimeo, not in the site’s
static/folder. - File size (high): self-hosted videos stay under 5 MB each where possible.
- Compression (medium): self-hosted videos use a modern codec (VP9 or AV1 in WebM) with an H.264 MP4 fallback for browsers that lack support.
-
preload(medium): videos that do not play automatically usepreload="none"orpreload="metadata"to save bandwidth.
Performance
Targets
Measure these on a production build, on mobile as well as desktop.
- Page weight (high): the first load (HTML, CSS, JavaScript and images) stays under 1.5 MB, ideally under 500 KB.
- Load time (high): the page loads fully in under 3 seconds on a 3G connection.
- Time to First Byte (high): TTFB is under 1.3 seconds, the original checklist’s limit. web.dev rates 0.8 seconds or less as good.
- PageSpeed score (high): PageSpeed Insights scores 90 or more on mobile and on desktop.
- Core Web Vitals (high): Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS) are in the “good” range: LCP at most 2.5 seconds, INP at most 200 milliseconds, CLS at most 0.1.
Delivery
- Few HTTP requests (high): every requested file is needed.
- Compression (high): the server sends gzip or Brotli responses. Check with
curl -I -H "Accept-Encoding: br, gzip" https://example.com/and look forContent-Encoding. - Cache headers (medium): static assets have suitable
Cache-Controlheaders; fingerprinted files can be cached for a year. - Resource hints (medium):
<link rel="preconnect">or<link rel="dns-prefetch">is set for critical third-party hosts such as analytics, CDN and API domains. - CDN (medium): static assets are served from a CDN.
- Cookie size (medium): each cookie stays under 4096 bytes, and the domain sets few cookies (the original checklist suggests fewer than 20).
SEO
- Sitemap (high):
sitemap.xmlis generated and submitted to Google Search Console. -
robots.txt(high):robots.txtexists and does not block important pages. -
robots.txtin production (medium): the production build allows crawling and does not shipDisallow: /. This usually depends on an environment variable; see the build section. - Structured data (high): Schema.org markup in JSON-LD is present and passes the Rich Results Test and the Schema Markup Validator.
- Structured data values (medium): author names,
sameAsURLs and image references in the JSON-LD are real values, not empty or placeholder ones. - One
<h1>per page (medium): each page has a single<h1>. The full heading order is covered under accessibility. - HTML sitemap (medium): an HTML sitemap page is linked from the footer.
- Analytics and Search Console (low): analytics is installed and the site is verified in Search Console.
Accessibility
-
Skip link (high): a “Skip to main content” link is the first focusable element on the page. With Bootstrap, the
visually-hidden-focusableclass hides it until it receives focus:<a href="#content" class="visually-hidden-focusable">Skip to main content</a> -
Focus styles (high): every interactive element shows a visible
:focusoutline that custom CSS does not suppress. -
Keyboard navigation (high): navigation, modals, forms and buttons can all be reached and used with the keyboard alone.
-
Form labels (high): every form field has a
<label>or anaria-label, and uses the right input type. -
Heading order (high): headings follow the document outline (
<h1>, then<h2>, then<h3>) without skipping levels, and are not used just for visual styling. -
Color contrast (medium): text and background pass the WCAG AA contrast ratio: 4.5:1 for normal text, 3:1 for large text.
-
Labels on icon-only controls (medium): links and buttons that show only an icon have an
aria-label. -
Screen reader test (medium): pages are tested with at least one screen reader, such as VoiceOver, NVDA or ChromeVox.
-
Automated audit (medium): the pages pass WAVE or axe without errors.
-
Progressive enhancement (medium): navigation and content work without JavaScript.
Security
- HTTPS everywhere (high): all pages and assets are served over HTTPS, with no mixed content.
-
rel="noopener noreferrer"(high): everytarget="_blank"link carriesrel="noopener noreferrer"to prevent tabnabbing. Current browsers implynoopenerfor such links, but older ones do not, andnoreferreralso withholds theRefererheader. - Subresource Integrity (medium): CSS and JavaScript loaded from a CDN or another third-party host have
integrityandcrossoriginattributes. - Content Security Policy (medium): a CSP header restricts where scripts, styles and other resources may load from.
- HSTS (medium): the
Strict-Transport-Securityheader is set with amax-ageof at least 31536000 (one year). -
X-Content-Type-Options(low):nosniffis set to prevent MIME-type sniffing. - Clickjacking protection (low):
X-Frame-Options: DENYorSAMEORIGINis set. The CSPframe-ancestorsdirective does the same in current browsers and takes precedence. - Header audit (medium): the site scores well on Security Headers and MDN HTTP Observatory.
Hugo
These items apply to sites built with the Hugo static site generator. Hugo reads its settings from hugo.yaml (config.yaml in older projects).
-
Archetypes (medium): each content type (blog, page and so on) has an archetype with pre-filled front matter:
archetypes/blog.md ---title: "{{ replace .Name "-" " " | title }}"description: ""date: {{ .Date }}draft: truearchived: falsetoc: truetags: []--- -
HTML minification (medium): minified output is enabled in the site configuration:
minify:disableXML: trueminifyOutput: true -
Sitemap settings (medium): the sitemap has a default
changefreqandpriority:sitemap:changefreq: weeklypriority: 0.5 -
enableRobotsTXT(medium): enabled, so that Hugo buildsrobots.txtfrom the custom template. -
Image processing (medium): content images are resized with Hugo’s
.Resize,.Fitor.Fillmethods. -
Hugo Pipes (medium): CSS and JavaScript go through
resources.Concat,resources.Minifyandresources.Fingerprint. -
External link render hook (medium): a
render-link.htmllink render hook inlayouts/_default/_markup/addstarget="_blank" rel="noopener noreferrer"to external links in Markdown content. -
canonifyURLs(medium): considercanonifyURLs: truefor consistent absolute URLs. -
Content for every language (medium): every language in the configuration has its content directory, or unused languages are disabled.
-
Conditional assets (low): page-specific scripts and styles are wrapped in conditionals, so they load only on the pages that use them.
-
Page bundles (low): images sit next to their Markdown files in page bundles, not in a global image folder.
-
.gitignore(low): build output is ignored:public/,resources/,node_modules/and generated CSS and JavaScript inassets/.
Build and CI/CD
- Pinned CI image (high): the CI job uses a fixed image version, for example
node:20-alpine, notlatest. - Production environment (medium): CI sets
HUGO_ENV=productionor the equivalent for your generator, so that:robots.txtallows crawling- analytics scripts are active
- minification and other optimizations run
- Generator available in CI (medium): Hugo, or your site generator, is installed in the CI build environment at the version you use locally.
- Reproducible builds (medium):
package-lock.jsonis committed and CI runsnpm ci, notnpm install. - Bundle size tracking (low): the size of the built assets is checked on each build, for example with size-limit.
Pre-launch summary
The items most often missed, collected for a last check before going live:
- The web manifest has a valid
nameandshort_name. - No boilerplate or placeholder text is left in the templates.
- All external links have
rel="noopener noreferrer". - All images are optimized (under 200 KB each).
- Videos are compressed or hosted externally.
- A skip navigation link is present.
- CI uses a pinned image version.
- Production environment variables are set in CI.
- Core Web Vitals are in the “good” range.
-
robots.txtallows crawling in production. - PageSpeed scores 90 or more on mobile and desktop.
- The accessibility audit (WAVE or axe) passes.
- Structured data validates.
- The security header audit passes.
- All forms have labels and the right input types.