DEAL ENDS IN:

SUMMER SALE!

UP TO 35% OFF!

GET IT NOW

A long delay before the appearance of the dynamic content

The delay occurs due to Ajax loading, where the page initially loads from the cache, and dynamic content is rendered only after the page finishes loading. This process is necessary when utilizing both page caching and dynamic content.

The page cache is actually a ‘snapshot’ of the page that is being served to the user. Dynamic content, which changes based on the user, needs to be loaded separately.

Solution 1: Exclude the page from the cache, and load the dynamic content without Ajax

A straightforward solution is to exclude the page from the cache and load the dynamic content without Ajax.

Loading a specific trigger without Ajax can be achieved by simply adding the parameter “ajax=”no” to the trigger’s shortcode.

Nonetheless, this approach involves a tradeoff between page cache utilization and dynamic content functionality. When making the decision there are two factors that are worth to consider: 

1. The loading speed of the page without page cache.
2. The importance of the page for SEO, including its ranking and potential to rank higher.

Solution 2: Optimize the user experience

If excluding the page from the cache is not an option, you can explore the following solutions to optimize the dealy:

1. Configure what If-So displays between the appearance of cached content and dynamic content

 If-So offers three options:

  1. Displaying a loader animation
  2. Showing nothing
  3. Displaying default content.

In many cases, displaying default content can be an optimal solution, particularly when the size of the default content closely matches that of the dynamic content. For instance, if the dynamic content is a button and the size of both the default and dynamic buttons is similar, users may hardly notice the content change.

More information about the animated loader option and instructions on how to set it up.

2. Technical Optimization (requires a developer)

  • Consider upgrading the server’s resources to improve performance
  • Optimize the site for faster loading by reducing server response time and streamlining the site’s structure
  • Minimize the size and complexity of content loaded via Ajax. This may involve compressing images, and eliminating unnecessary elements to enhance loading speed