iFrame Embed Code
Add the following code wherever you’d like the form to appear:REPLACE ME WITH FORM URL with your actual Surface form URL. You can find this URL by clicking the “Share” button in the Overview section of the form.
Optimize Speed
Add the following<link> tags inside the <head> of your site:
Replace
REPLACE ME WITH FORM URL with a Surface Form URL.Explanation
- dns-prefetch → Resolves the domain early to skip DNS lookup delays.
- preconnect → Prepares the TCP + TLS handshake so the browser is ready to request assets immediately.
- prefetch → Fetches the form in advance, so it’s ready when a user opens it.
