Skip to content
Auto Genius Help Center home
Auto Genius Help Center home

Where to Place the Speed Layer Script

Purpose

Explain where to place the Speed Layer script so it runs early enough to be effective.

Install the script directly in the head, on every page.

Use the standard snippet:

<!-- Start Auto Genius Layer script --> <!-- DO NOT add defer or async --> <script src="https://exo.autogenius.io/{nanoId}"></script> <!-- End Auto Genius Layer script -->

Placement requirements

  • Inside the head
  • Immediately after the title tag
  • First script on the page
  • No async or defer

Why early placement matters

Speed Layer needs to run before other scripts and styles load so it can coordinate page work during the critical part of page load.

Platform specific placement

If you use an automotive website platform, follow the platform specific installation page under Supported Platforms.

If your platform offers multiple script locations, choose the one that injects in the head, not in the body.

What to avoid

Common placement problems:

  • Added in a tag manager that injects late
  • Added below render blocking stylesheets
  • Added after analytics or chat tags
  • Added with async or defer