• 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

  • Introducing Recommendations & Error Detection in Forms, Surveys & Quizzes October 21, 2026
  • Introducing the Quiz Element in Funnels & Websites! October 21, 2026
  • Action needed: move your WhatsApp marketing to MM Lite before October 2027 October 19, 2026
  • Get the right ad platform on your number pool calls October 16, 2026
  • Send number pool calls to multiple users who can answer it on any device they choose October 16, 2026
  • Localized Gift Card Communications | Clixio Changelog October 15, 2026
  • A rebuilt WhatsApp template builder, plus per-contact media October 15, 2026
  • Checkout upgrades for AI Studio Payments October 15, 2026
  • AI Studio Chat Widgets: Native Live Chat Built Into Your AI Studio Apps October 14, 2026
  • Enable or Disable Features for Multiple Accounts at Once October 14, 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