• 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 feed: Latest Feature Updates Latest Feature Updates

  • Improved: Dynamic Value Chips with Improved error segmentation September 4, 2026
  • 📞 More Reliable Missed Call Text Back with Smarter Number Selection September 4, 2026
  • 🔐 Client Portal: “User login” Workflow Trigger Now Supports the New Client Portal Experience September 3, 2026
  • 📢 Carrier Fee Pricing Update – Effective October 1, 2026 September 3, 2026
  • Privacy Policy + T&C URLs on Toll-Free Verification September 2, 2026
  • Workflow Builder: Pick an Email Sender Domain for Each Workflow! August 28, 2026
  • Certificate AI Beta is now live August 27, 2026
  • 📅 Date Range Setting Can Now Count Only the Days You Actually Work August 27, 2026
  • Schedule Availability with Custom Open & Expiry Experiences – Form, Survey & Quiz August 27, 2026
  • WhatsApp messaging limits: now shown at the portfolio level August 27, 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.
Scroll to top Scroll to top Scroll to top