# Step 3: Optimize



Add the following code to your site's `<head>`. With
[**WPCode**](/guides/embedding/wordpress/embedding&#x29;, go to &#x2A;*`Code Snippets`*&#x2A; >
&#x2A;*`Header & Footer`** and paste it into the **Header** section.

```html
<!-- Speed up connections to forms.withsurface.com by performing early DNS resolution and TCP handshake -->
<link rel="dns-prefetch" href="https://forms.withsurface.com">
<link rel="preconnect" href="https://forms.withsurface.com" crossorigin>

<!--  Fetch the form in advance, so it's ready when a user opens it. -->
<link rel="prefetch" href="REPLACE ME WITH FORM URL" as="document">
```

<Info>
  Replace `REPLACE ME WITH FORM URL` with a Surface Form URL.
</Info>
