How to refresh a page after Memberstack fully loads to ensure forms prepopulate correctly? Answered

Is there a way to refresh a page when the dom has fully loaded? I am running into an issue that a page loads before memberstack has fully loaded and that forms don’t prepopulate unless you manually refresh the page

Comments

1 comment

  • Comment author
    Ben Sabic

    You'll need to wrap your code in a DOMContentLoaded event listener. That way the Memberstack code (and any other code you have) doesn't run until the DOM is ready.

    0

Please sign in to leave a comment.