Features/Performance

SPA navigation

Links between pages load instantly without a full page reload, with an option to switch back to classic reloads.

Published Divhunt sites work as a single-page app. When a visitor clicks an internal link, only the new page's content is fetched (a small per-page file from the CDN), rendered into the page and the URL is updated with the History API. Shared CSS and scripts stay loaded. If a third-party script needs a real page load on every navigation, turn on 'Refresh on page change' in site settings to make the site behave like a classic multi-page site.

How it works

  • Click handlers on a[page-id] and on relative links that match a page route; target=_BLANK links and elements with dh-spa='prevent' are skipped.
  • CMS pages fetch their item through the data source.
  • history.pushState with document.title set to the page name (variables resolved).
  • Setting dh.mpa disables SPA handling.

When to use it

  • Fast page switches on a marketing site
  • Page transitions with exit animations

Limitations

  • On SPA navigation the meta tags, canonical and schema are not updated; document.title becomes the page name, not the SEO title
  • Third-party scripts that expect page loads may need MPA mode

Availability

  • Works in Designer and MCP.
  • Included in every plan.

How to use it.

  1. SPA is on by default
  2. To turn it off: Site settings > General > Refresh on page change

Questions.

Will Google see each page?

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.