• 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

  • HouseCall Pro – Workflow action & triggers June 5, 2026
  • QR Code Sharing in Funnel Builder June 5, 2026
  • Product Custom Values for Dynamic Product Details Page Content June 5, 2026
  • Invoices – Accounting sync | Clixio Changelog June 5, 2026
  • Ad Manager: Draft support for Meta lead forms June 5, 2026
  • Analytics & Discovery Sub Agent in AI Builder in Workflows June 4, 2026
  • Pricing Update: SMS Costs for Select International Destinations Effective June 12, 2026 June 4, 2026
  • Alt Text Support for Images in Social Planner June 4, 2026
  • Conversations AI: Enhanced Audio Understanding June 3, 2026
  • Audit Logs for Preference Management 🚀 June 3, 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.