parity
Rules: 6
parity/canonical
The canonical link exists only after JavaScript runs
parity/canonical/mismatch · warning · score 5.5 · page
The raw HTML has no canonical link, so crawlers that do not run scripts may index duplicate URLs of the same page. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.
Reported as
the canonical link exists only after JavaScript runs
Fix
Render <link rel=“canonical”> on the server.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity.missing
Expects
{
"properties": {
"canonical": false
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
parity/description
The meta description exists only after JavaScript runs
parity/description/mismatch · info · score 2.6 · page
The raw HTML has no meta description, so search engines and link previews that do not run scripts show a poorer snippet. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.
Reported as
the meta description exists only after JavaScript runs
Fix
Render <meta name=“description”> on the server.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity.missing
Expects
{
"properties": {
"description": false
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
parity/h1
The main heading exists only after JavaScript runs
parity/h1/mismatch · info · score 2.4 · page
The raw HTML has no h1, so crawlers and readers without scripts get no main heading. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.
Reported as
the h1 exists only after JavaScript runs
Fix
Render the page heading on the server.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity.missing
Expects
{
"properties": {
"h1": false
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
parity/links
Internal links exist only after JavaScript runs
parity/links/mismatch · warning · score 5.8 · page
The raw HTML lacks the site’s internal links, so crawlers that do not run scripts cannot follow them to the other pages. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.
Reported as
internal links exist only after JavaScript runs
Fix
Render navigation links as <a href> on the server.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity.missing
Expects
{
"properties": {
"links": false
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
parity/text
Most of the page text appears only after JavaScript runs
parity/text/mismatch · warning · score 5.2 · page
Less than half of the text a browser shows is in the raw HTML, so crawlers, readers and tools without scripts see a mostly empty page. Browser mode compares the raw HTML with the rendered page, and only pages with at least 200 rendered characters are judged.
Reported as
the raw HTML carries a share of the text the rendered page shows
Fix
Render the main content on the server, or give it a <noscript> fallback.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity
Expects
{
"if": {
"properties": {
"rendered": {
"properties": {
"text": {
"minimum": 200
}
}
}
}
},
"then": {
"properties": {
"text-share": {
"minimum": 0.5
}
}
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}
parity/title
The title exists only after JavaScript runs
parity/title/mismatch · warning · score 6.0 · page
The raw HTML has no title, so crawlers and link previews that do not run scripts see an untitled page. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.
Reported as
the title exists only after JavaScript runs
Fix
Render <title> on the server.
Off by default; a group that runs parity turns it on.
References
For rule authors
Reads
parity.missing
Expects
{
"properties": {
"title": false
}
}
When
{
"http.status": {
"minimum": 200,
"maximum": 299
}
}