Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Running Chrome Audit (Lighthouse) results in SEO missing meta description #184

Open
jmlivingston opened this issue Nov 29, 2019 · 1 comment

Comments

@jmlivingston
Copy link

jmlivingston commented Nov 29, 2019

Steps

  1. Run the following commands to clone, install, build, and run:
npx degit "sveltejs/sapper-template#rollup" my-app
cd my-app
npm install
npm run dev
  1. Open http://localhost:3000 in Chrome.
  2. Open Chrome Developer Tools.
  3. Click the Audit tab and run and click the "Run audits" button.

Expected Results

SEO gets a score of 100.

Actual Results

image

Environment / Dependencies

  • macOS Catalina (10.15.1)
  • Sapper 0.27.9
  • Svelte 3.15.0
  • Rollup 1.27.5

Workaround

Add a "TODO" meta description under <svelte:head> in the following files:

  • src/routes/about.svelte
  • src/routes/index.svelte
  • src/routes/blog/index.svelte
  • src/routes/blog/[slug].svelte
<svelte:head>
  <meta name="description" content="TODO">
</svelte:head>

Results

A perfect score given the only negative is not being able to run HTTP/2 which is not much of viable option running locally.
image

@jmlivingston jmlivingston changed the title Chrome Audit (Lighthouse) results in missing meta description Running Chrome Audit (Lighthouse) results in SEO missing meta description Nov 29, 2019
@Conduitry Conduitry transferred this issue from sveltejs/sapper Nov 29, 2019
@Conduitry
Copy link
Member

Conduitry commented Nov 29, 2019

Moved from sapper repo to sapper-template repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants