Embedding Your CRM and Calendar Without Breaking the Page

By Vidar April 20, 2026 7 min read Websites & Conversion

Why Embeds Break Sites (The 3 Common Failures)

Every embed on your site is an outside script pulling in another company’s content. Done well, embeds are invisible. Done poorly, they cause three specific problems:

  1. Speed collapse. An unoptimized embed can drop PageSpeed Insights scores by 15-30 points on mobile. Google penalizes slow sites in ranking. What was a top-3 position becomes page-two.
  2. Layout shift (CLS). Embeds that load without reserved space push content around after the page appears loaded. Users click where the button was and end up somewhere else. Google measures this, Cumulative Layout Shift is a Core Web Vitals metric.
  3. Mobile breakage. Desktop embeds look fine. The same embed on mobile pushes content off-screen, breaks tap targets, or creates horizontal scroll. 60%+ of your traffic is mobile a broken embed there is a broken embed period.

All three failures are avoidable with the techniques below. But almost every site has at least one of them because most people copy-paste the vendor’s embed code and don’t customize.

Inline Embed vs Pop-up Embed

Two ways to embed a widget on your site. Pick the right one for each page.

Inline Embed

What it is: The widget is embedded directly in the page content. Visitors see the calendar or form as part of the page, no click required to reveal it.

When to use it: On high-intent pages where the goal is to convert visitors who are ready to act. Contact page. Book-a-call page. Dedicated landing pages.

Pros: Frictionless, visitors book without an extra click. Higher conversion on high-intent pages.

Cons: Adds visual complexity to the page. Adds load time. Can push other content down.

Best for: Contact pages, dedicated booking pages, thank-you pages with next-step CTAs.

Pop-up Embed (Modal)

What it is: The widget appears when a visitor clicks a CTA button. Until clicked, only the button is loaded.

When to use it: On pages where booking is a secondary action. Service pages. Blog posts. About page. Homepage.

Pros: Doesn’t slow page load. Doesn’t clutter page design. Faster PageSpeed scores.

Cons: Adds a click before the visitor sees the widget. Slightly lower conversion than inline for high-intent visitors.

Best for: Homepage CTAs, service page bottoms, blog posts, sidebar widgets.

The Rule of Thumb

If a visitor arriving at this page is highly likely to want to book right now, inline embed. If booking is a possible action but not their primary intent, pop-up embed.

Most sites should have inline embeds on 2-3 pages max (Contact, Book-a-Call, and maybe one landing page) and pop-up embeds everywhere else.

Best Practices for Calendar Embeds

Calendars are the most common embed type and cause the most visible problems. Follow these practices:

  1. Use the official embed code, not iframes copy-pasted from other sites. GHL, Calendly, Cal.com, and HubSpot all publish official embed code. Use it.
  2. Load embed scripts with defer or async. Adding defer to the script tag prevents render-blocking. This alone often saves 15-25 PageSpeed points.

  1. Set explicit width and height. Every iframe needs both attributes to prevent layout shift. Example:

  1. Style the container, not the iframe. You can’t style the widget’s internals via CSS (cross-origin restriction). Instead, style the container div to match your site; background color, padding, border radius.
  2. Set container background to match the widget. If the widget loads with a white background, set the container’s background to white too. This prevents the flash of colored background before the widget loads.

Best Practices for CRM Form Embeds

CRM form embeds (HubSpot, GHL, Marketo) have their own quirks:

  1. Use native HTML forms when possible. Instead of embedding a HubSpot form via iframe, use HubSpot’s non-embedded form endpoint and write your own HTML form that posts to it. This gives you full styling control and eliminates the iframe entirely.
  2. If you must use iframe embed, size it correctly. HubSpot’s default iframe is often too tall (leaving whitespace) or too short (cutting off content). Set the iframe height dynamically with JavaScript that adjusts to the actual form height.
  3. Don’t nest embeds inside embeds. Never embed a form inside a Squarespace or Webflow block that’s already an embed. Nested iframes have cascading load issues.
  4. Load form scripts on demand. For pop-up modal forms, load the script only when the button is clicked, not on page load:

How to Match Your Brand Style

The default embed usually doesn’t match your site’s design. Most calendar and form embeds offer styling options, use them.

Calendly: Under Event Type settings, customize primary color, text color, background color. Some settings only apply to Premium accounts.

GHL: Under Calendar settings → Widget Settings, customize accent color, text color, background color, button style. GHL offers extensive customization.

HubSpot Forms: Under Form settings, customize colors, fonts, button styles. Free and Starter tiers have limited options; Professional tier unlocks full customization.

Cal.com: Under Event Settings → Advanced, customize theme, colors, layout.

Beyond vendor settings, use CSS on the container div to control margin, padding, border-radius, and background. You can’t restyle the widget’s internals via CSS due to cross-origin restrictions, but the container styling handles 90% of visual matching.

Preventing Layout Shift (CLS)

Cumulative Layout Shift is a Core Web Vitals metric. Google measures how much your page layout shifts around while loading. CLS above 0.1 hurts SEO ranking.

The primary CLS cause for embeds: not reserving space before the widget loads.

The fix: Always set an explicit min-height on the container div matching the expected widget size. Example:

The min-height reserves space, so when the iframe loads, no other content moves.

Test your page with PageSpeed Insights before and after adding the embed. If CLS jumped above 0.1 after adding the embed, you’ve likely missed the min-height fix.

Mobile Considerations

Mobile embeds are where things break. Test on your actual phone, not just desktop mobile view.

Common mobile embed problems:

  1. Iframe too tall for mobile viewport. Solution: Use responsive iframe height with media queries.

  1. Widget’s internal text too small on mobile. Some widgets don’t respect mobile viewport well. Vendor’s responsive settings help; if not, consider a pop-up modal that renders differently on mobile.
  2. Sticky mobile CTAs covering the widget. If your site has a sticky “Book Call” mobile button, it can cover the calendar. Solution: hide the sticky button on the page where the calendar lives.
  3. Horizontal scroll. Almost always caused by fixed-width elements in the widget. Solution: constrain the container to max-width: 100% and overflow-x: hidden.

Test on real devices, not just Chrome DevTools. Real phones expose issues emulators miss.

Testing the Embed Before Publishing

Before pushing an embed live, run this 5-minute test:

Speed test. Run PageSpeed Insights on the page before and after adding the embed. Note the mobile score change. Losing 5 points is fine; losing 20 points is a red flag.

CLS test. In PageSpeed Insights, check the “Cumulative Layout Shift” number. Should stay under 0.1.

Mobile test. Load the page on your actual phone. Scroll through the entire page. Look for horizontal scroll, cut-off content, tap targets covered by sticky elements.

Interaction test. Actually book a test slot or submit a test form. Verify the flow works end-to-end and confirmation arrives.

Style test. Compare the embedded widget’s colors and fonts to your site’s design. If they clash badly, fix vendor styling or add container CSS.

Only publish after all five tests pass.

FAQ

Does embedding slow my site? Yes, always but the amount varies. A well-optimized embed adds 100–300ms. A poorly optimized embed adds 1-3 seconds. Load scripts with defer, set explicit iframe dimensions, and use pop-up modals where possible.

Can I customize embed styling? Partially. Most vendors let you customize colors, fonts, and buttons via their settings. You can’t restyle the widget’s internals via CSS due to cross-origin restrictions, but you can style the container that holds the widget.

Should I use inline or popup embed? Inline for high-intent pages (contact, book-a-call). Pop-up for lower-intent pages (homepage, service pages, blog posts). Pop-ups load faster; inline converts higher on visitors who are ready to act.

Why does the calendar break my mobile layout? Usually one of three things: iframe too tall for mobile viewport, widget’s internal fixed-width causing horizontal scroll, or sticky mobile CTA covering the calendar. Fix with responsive iframe height, container overflow constraints, and hiding sticky CTAs on the calendar page.

Can I embed two different calendars on the same page? Yes, but be careful. Two calendars means two embed scripts loading, which compounds the speed cost. Use pop-up modals for both so scripts only load on click.

Key Takeaways

Use inline embeds on high-intent pages, pop-up embeds elsewhere.

Load embed scripts with defer or async to avoid render-blocking.

Set explicit width and height on every iframe to prevent layout shift.

Style the container, not the widget (cross-origin restrictions limit internal styling).

Test on real devices before publishing, desktop mobile view misses real issues.

If you’d like Octo Partners to configure and optimize your calendar and CRM embeds as part of your website engagement, that’s included in our website services. Or book a free Strategy Call to review your current embed setup.

Website Development services

Skale Platform

5 CRM Automations That Pay for Themselves in 30 Days

Schema, Speed, and Mobile: The Boring SEO Trio

Suggested External References

Let's Design Your Operations Architecture

Every growth challenge is a systems problem. Book a 30-minute Strategy Call, and we will analyze your tools, design a blueprint for missed call recovery or lead conversion, and recommend practical next steps.

Book a Strategy Call

About Vidar

Lead Conversion Architect

Vidar builds conversion-optimized websites and landing pages, focusing on speed performance, B2B copywriting, and UX strategy.

Related Articles

Sticky CTAs, Exit Intent, and Other High-ROI Conversion Tactics

The 7 highest-ROI conversion tactics beyond just “have a good CTA”: (1) sticky CTA bar (+8-15%), (2) exit intent modal (+5-10%), (3) scroll-triggered CTA (+3-8%), (4) time-on-page chat assistant (+10-20%), (5) dynamic personalization (+5-15%), (6) progressive form disclosure (+15-25%), and (7) trust bar with real reviews (+3-6%). Progressive forms usually beat everything else on B2B. This article ranks each tactic by ROI, tells you when they backfire, how to implement without a developer, and how to measure real impact. Every tactic listed can be built without hiring a CRO specialist.

May 25, 2026

Why “Just Use Squarespace” Is Bad Advice (And When It’s Right)

Squarespace works for solo founders under $500K revenue, design-forward brands who need to launch fast, and businesses that don’t need complex integrations. Squarespace becomes limiting once you need custom automation, CRM integration, real forms, complex membership functionality, or blog SEO at scale. Three signals you’ve outgrown it: you’re paying for 3+ third-party workarounds, you can’t integrate the tools you actually need, and Squarespace SEO isn’t holding rank against competitors. This article covers when Squarespace is the right call, when it becomes a ceiling, and how to migrate off cleanly if you have to.

March 16, 2026

Schema, Speed, and Mobile: The Boring SEO Trio That Decides Rankings

Three technical SEO factors decide most rankings once content quality is roughly equal: (1) schema markup; structured data like Organization, FAQ, and Article that helps Google understand your content, (2) page speed measured by Core Web Vitals (LCP under 2.5s, CLS under 0.1, INP under 200ms), and (3) mobile-first indexing, Google reads your mobile site first and ranks based on that experience. Content SEO gets the attention, but technical SEO wins the ties. Free tools to check all three: PageSpeed Insights, Rich Results Test, and Search Console. Most sites can hit acceptable scores on all three in a focused weekend.

February 9, 2026

Subscribe to The Octo Brief

Get our next practical playbook on conversion web design, CRM setup, or operations automation delivered straight to your email.