Help with Embed in Tabs

Can anyone help!?

I have a page with several tabs, on the last of which is an embed with javascript to load a booking calendar served by a separate booking system.

If the embed is on the active tab when the page loads, it renders perfectly. However, if the embed is not the active tab when the page loads, when you switch to the tab, the calendar does not render properly.

I am guessing that I need to add an ‘onclick event listener’ so that the embed script is only parsed by the browser when the relevant tab link is clicked, but not quite sure how to accomplish this.

Would anyone be able to help? Thank you in advance! Below is a read-only link to the site and here is the embed script:

<script src="https://www.chaletmanager.com/alpinium/available/3007AJdRktEr4yx/current/?js&layout=grid" charset="utf-8"></script>

Here is my site Read-Only link: https://preview.webflow.com/preview/alpinium?utm_medium=preview_link&utm_source=designer&utm_content=alpinium&preview=cd7f96f64e886285faedae5df5ba1559&pageId=5f5777509e2164cbf08c0570&itemId=5f57a29d55813b779f31e93f&mode=preview

@samliew are you able to help me with this?