Replace Calendly's Spinner with a Custom Skeleton Loader in React
Raqibnur
CTO @ The Run Digital
Introduction
Calendly’s default loading spinner can be slow and unappealing, leading to a poor user experience and even lost leads. By replacing it with a custom skeleton loader in React, we can create a smoother, more engaging loading experience for users. Here’s a quick guide to implementing this in your app using Shadcn’s skeleton component.
Why Use a Skeleton Loader?
Skeleton loaders offer a visual placeholder that makes loading content feel faster and more polished. Compared to traditional spinners, they provide a more intuitive experience, showing users that content is actively loading.
Step-by-Step Implementation
1. Install Shadcn’s Skeleton Component:
2. Create the Skeleton Loader Component:
3. Integrate the Skeleton Loader with Calendly Widget:
Copy code
Here, the useCalendlyEventListener hook listens for events from the Calendly widget and hides the skeleton loader once the widget is fully loaded.
Conclusion
With this setup, your users see a professional skeleton loader instead of Calendly’s spinner, reducing confusion and improving the user experience. A small change, but one that can keep users engaged and lead to higher conversions.