Hi @antoname8 ,
The delay you are experiencing in the Touch UI dialog loading and show/hide functionality could be influenced by several factors. Here are a few possible reasons for the intermittent delay:
1. Browser Performance: The performance of the browser you are using can impact the rendering and execution speed of JavaScript code, which is responsible for the show/hide functionality. If the browser is busy with other tasks or has limited resources, it may cause a delay in executing the show/hide logic.
2. Network Latency: The speed and stability of your network connection can affect the loading time of the Touch UI dialog. If there are network issues or high latency, it can result in delays in fetching and rendering the dialog components.
3. Server Load: The performance of the AEM server can also impact the loading time of the Touch UI dialog. If the server is under heavy load or experiencing high traffic, it may take longer to process and deliver the dialog content to the browser.
4. Caching: If there are caching mechanisms in place, such as browser caching or CDN caching, it can affect the loading time of the dialog. If the cached version of the dialog is served, it may not reflect the latest show/hide logic, resulting in a delay when the updated logic is applied.
To troubleshoot and mitigate the delay, you can consider the following steps:
1. Optimize the show/hide logic: Review the JavaScript code responsible for the show/hide functionality and ensure it is efficient and optimized. Avoid unnecessary DOM manipulations and consider using debounce or throttle techniques to optimize the execution.
2. Test on different browsers: Verify if the delay is consistent across different browsers. If the delay is specific to a particular browser, it could indicate browser-specific performance issues.
3. Monitor server performance: Keep an eye on the server performance metrics, such as CPU usage, memory utilization, and response times. If the server is consistently under heavy load, it may require optimization or scaling.
4. Network analysis: Use network analysis tools to identify any network-related issues, such as high latency or packet loss. This can help identify potential bottlenecks in the network infrastructure.
5. Clear cache: If caching is enabled, try clearing the browser cache or disabling caching temporarily to ensure the latest version of the dialog is loaded.
If the issue persists and significantly impacts the authoring experience, it is recommended to reach out to Adobe Support or your AEM implementation partner for further investigation and assistance.