Websites published by Attendease are designed to load the main site HTML (along with your custom JavaScript and CSS) as any site would, but all of the content configured via Site Manager (i.e. content blocks and related options) is loaded by JavaScript immediately after the main HTML page loads.
This load order is important to understand, because it may affect the functioning of your custom Javascript. That is, if you have a piece of custom code that targets a website element, then you need to put something in the JavaScript to pause it until the page is done loading and the element is present in the DOM. Otherwise the script will execute with no target and nothing will happen.
At the suggestion of our engineers setTimeout and setInterval are good options for achieving this.
Comments
0 comments
Please sign in to leave a comment.