The Head Appender API adds HTML to the head of the page, such as preload links and styles. Use it for markup that has to be in the page before the browser renders the body, so resources start loading early and styles apply from the first paint.
With the Head Appender API, you can:
To use the API, install the @wix/site-service-head-appender package:
Import any type shown in these docs from @wix/site-service-head-appender/types:
In a React component, resolve the service with the useService hook:
Last updated: 21 October 2026