Megaphone icon.

We are proactively implementing preventative security measures for certain users. As a result, some users may be prompted to reset their passwords. We appreciate your patience and partnership.  Password reset issue or no reset link? Call Support at 888-228-2233

Working with JavaScript in Custom HTML

Prev Next

Custom HTML injected into Web Evolve is executed after the main page load lifecycle has completed. As a result, browser events such as document.ready, DOMContentLoaded, or similar load-based callbacks will not fire for this injected code, since those events have already occurred.

Clients attempting to bind logic to these events within their custom HTML will see inconsistent or non-functional behavior. To mitigate this, we recommend:

  • Using immediately invoked function expressions (IIFEs) or inline scripts that execute upon insertion.

  • Manually checking document.readyState if conditional logic is needed.

  • Leveraging mutation observers or explicit function calls if interaction with dynamically rendered elements is required.