Skip to main content
Use runtime helpers when your storefront changes widget containers after the initial page load, or when your code needs to react to widget load state.

Refresh widgets on dynamic pages

The script mounts widgets when it loads. If your site adds or changes Cevoid containers after the initial page load, call window.cevoid.reloadAll() after updating the DOM.
Use this for single-page apps, AJAX-loaded sections, product variant changes, and CMS tabs that reveal widget containers after load.

Check widget load state

Cevoid exposes gallery and card load state on window.cevoid.
Cards use the same pattern under window.cevoid.cards.
This is useful when you want to hide a section if a dynamic gallery has no posts.

Listen for widget load events

Use widget load events when your code needs to react as soon as a gallery or card finishes loading.

Card loaded

Set up event listeners before loading dynamic widgets when possible, especially if your script needs to react to the first widget load.