# Step 3: Optimize





<Frame>
    <img alt="Unbounce JavaScript Settings" src="__img0" />
</Frame>

1. In the bottom toolbar, click the "JavaScript" button
2. Click "Add New JavaScript"
3. Add the following link tags:

```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>

Set the script placement to &#x2A;*"Head"*&#x2A; and click &#x2A;*"Done"** to save the changes
