---
updatedAt: 2025-05-27T21:13:08.000Z
agentTools:
  projectIndex: https://developer-docs.rivo.io/llms.txt
---

# Events

Ensure the `RivoJS` object is loaded by listening to `rivo-js-loaded` on the document

```javascript
if (window.RivoJS) {
  // RivoJS is loaded and ready to use
} else {  
  document.addEventListener("rivo-js-loaded", function(){
  // RivoJS is loaded and ready to use
}
```