• Shopping Cart Shopping Cart
    0Shopping Cart
Clixio
  • Features
  • Pricing
  • FAQ
  • Blog
  • Log in
  • Free Trial
  • Menu Menu

Custom event dispatch for custom code execution in Funnels 🚀

May 21, 2024/in What's New? Funnels and Websites

A new custom event hydrationDone has been introduced in the preview. This event will be dispatches when the funnel/website preview has completed its hydration so a user can run specific custom code post hydration.

😇**Why?**😇
– Previously, users might have faced issues where their custom scripts would execute before our preview hydration had completed.
– This timing mismatch could lead to incorrect execution flow and hinder the intended functionality of their custom code.

🌟**How did we solve this?**🌟
– By dispatching the ‘hydrationDone’ event after complete hydration of the preview is completed, we’ve effectively eliminated this source of contention.
– Users can add an event listener on the hydrationDone event and execute their following code. This is especially useful if they are trying to manipulate DOM content.

🤩**How to use?**🤩
– Add a code element in the builder
– Listen the hydrationDone event like below
“`
document.addEventListener(
“hydrationDone”,
() => {
// Add custom javascript here
})
“`
– Once the preview DOM content is loaded and hydration event is received, the custom code will run without any issue or race condition.

Note: Optimise javascript may need to be disabled if user’s custom code is critical on page load, as it delays the hydration event if there is no user interaction.
![image (46)](

https://clixio.io/wp-content/uploads/2023/08/clixio-logo-dark.png 0 0 Clixio.io https://clixio.io/wp-content/uploads/2023/08/clixio-logo-dark.png Clixio.io2024-05-21 19:45:342024-05-21 19:45:34Custom event dispatch for custom code execution in Funnels 🚀

RSS Latest Feature Updates

  • 📈 Rebuilt Course Progress Analytics July 22, 2026
  • Inline Validation Errors for Schema Markup JSON View July 22, 2026
  • Refreshed Placeholder Images in Store Builder July 21, 2026
  • Introducing New Templates | Clixio Changelog July 11, 2026
  • Targeted Edits in AI Builder July 10, 2026
  • New Channel Management Conversation AI July 10, 2026
  • 🚀 Prospect AI gets an activity center & pipeline integration July 10, 2026
  • Todoist: Workflow actions & triggers July 10, 2026
  • Jira: Workflow actions and triggers July 10, 2026
  • ✏️ Fully Edit Service Bookings—Even After Payment July 9, 2026
Book a demo
See Clixio working
for your business, live.

30 minute call with our team. Personalised to your industry, no hard sell.

Book your free demo
14 day free trial · Cancel anytime
Clixio - Marketing and sales automation

Marketing & sales automation built for Australian service businesses. One platform, one flat rate, genuinely easy to use.

Product
Features Pricing How it works Latest updates
Company
Blog FAQ Get support Account transfers
Legal
Privacy Policy Terms & Conditions
© Clixio. All rights reserved. Made with ♡ in Australia.