JavaScript embed widgets

When integrating Waitwhile into your website, you have two primary options for embedding: inline or modal. Each method offers distinct advantages and is suited to different use cases, so it’s essential to align your choice with your specific needs and user experience goals.

Inline embedding integrates Waitwhile directly into your page content, creating a seamless flow within your existing design. In contrast, modal embedding displays Waitwhile as an overlay that is triggered by user interaction, such as a button click. Your decision should be guided by factors like your website’s layout, the desired user journey, and the level of prominence you want to assign to Waitwhile’s functionality.

Let’s explore both options to help you choose the best fit for your site.

Embed the status page

To render a customer status page instead of the registration flow, we provide publicVisitId in addition to just the locationId in the configuration options: