Botonomy rendering lab
Rendering test, 10 s delay (B): canonical in HTML
This page is a rendering test run by Botonomy. Its last sentence is added by JavaScript 10 seconds after the page loads. We record whether Google indexes that sentence, to learn how long Google waits for content that appears late. The test runs for 30 days, and the result will be published on this page.
Where should a page set its canonical URL?
The canonical link names the main address of a page. Set in the HTML the server sends, it is there before any script runs. This page sets its canonical that way.
Google says: “The best way to set the canonical URL is to use HTML”
JavaScript SEO basics, Google Search Central
Reference phrase in this page's HTML: lodestar dowel umber egret 861.