Prefetching content from different pages

Hello,
I’m having a performance issue after migrating to a lesser host (imposed constraint) and I was wondering if the following is possible. The scenario is as follows:

  1. Index page shows a bootstrap table with a number of results, from table_1
  2. detail page shows the details of any of the results from the index page, from table_2

I was wondering if I could load table_2, filtered by ids present on the index page, in the index page and add them to some sort of local storage, so that when the detail page is loaded, it doesn’t have to wait until the content of table_2 is fetched, which is getting 10 to 15 seconds as the table grows.

Thanks for your insights.

You use Server Connect to fetch the data? Then use the data caching properties, it allows you to add the results to local storage and the second time the same data is requested it will get it from there.

For prefetching other resources check:

Hi @patrick,

Yes, I’m using Server Connect with PHP to fetch the data. In my use case the data on the detail page is going to be updated every time, so I can’t cache it (hence the idea of preloading it from a previous page).
I was looking into a lazy loading alternative to load the server connect query, and I’ve heard other members refer to this, but other that the swipper, which doesn’t fit this case, I can’t find a behavior that would do this.