Skip to content

Commit 650efab

Browse files
committed
Switch Calendley preconnect to dns-prefetch
It turns out that `c839db0a` wasn’t a simple CORS thing (are they ever?). Because `calendly.com` doesn’t response with an `Access-Control-Allow-Origin` header, we can’t reuse the same CORS-enabled connection that our `preconnect` opened. In fact, we can’t use `preconnect` at all without forcing a wasted connection, a lost round trip, and opening a final connection JIT and in-band. In this case, `dns-prefetch` is actually faster as it avoids waste.
1 parent c839db0 commit 650efab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Or book a free call:
1717

1818
<div class="calendly-inline-widget" data-url="https://calendly.com/csswizardry/30min?background_color=f9f9f9&text_color=333333&primary_color=f43059" style="min-width:320px;height:700px;margin-bottom:1.5rem;"></div>
1919
<script src="https://assets.calendly.com/assets/external/widget.js" async fetchpriority=high></script>
20-
<link rel="preconnect" href="https://calendly.com" crossorigin>
20+
<link rel="dns-prefetch" href="https://calendly.com">
2121

2222
- - -
2323

performance-audits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ triage the extent of performance issues with your site.
141141

142142
<div class="calendly-inline-widget" data-url="https://calendly.com/csswizardry/fix-it-fast?background_color=f9f9f9&text_color=333333&primary_color=f43059" style="min-width:320px;height:700px;margin-bottom:1.5rem;"></div>
143143
<script src="https://assets.calendly.com/assets/external/widget.js" defer fetchpriority=high></script>
144-
<link rel="preconnect" href="https://calendly.com" crossorigin>
144+
<link rel="dns-prefetch" href="https://calendly.com">

0 commit comments

Comments
 (0)