load repeater contents asynchronously

Farah El Agha asked on December 4, 2017 17:01

is there a way in kentico that allows us to load the content of a repeater asynchronously, I have a Home page with a lot of data that is very slow in loading, since it has a lot of repeaters with heavy content, what is the solution in such case?

Recent Answers


Peter Mogilnitski answered on December 4, 2017 17:35 (last edited on December 4, 2017 17:36)

You need to enable caching.

I suggest you do Output cache (full page) that caches the full HTML output of pages, but you may go with Partial output cache that caches the HTML output of individual page components (web parts).

0 votesVote for this answer Mark as a Correct answer

Farah El Agha answered on December 4, 2017 17:59

hello Peter, well actually the cache concept is different from what I want in my page, I want to divide the page loading between immediate and synchronous (for light data like texts and titles) and asynchronous data like repeaters that contain heavy data (videos, images..), is this option can be achieved with kentico?

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on December 4, 2017 18:22

I don't think that there is anything "out of the box" you will probably end up creating you own "ansync repeater web part". Check the market place there is smart search results. it shows smart search result asynchronously, I guess you might borrow some ideas from there.

0 votesVote for this answer Mark as a Correct answer

Farah El Agha answered on December 4, 2017 18:38

thank you peter, but generally speaking, besides chache, what do you do if you had a heavy loading repeater, that caused a slow page display? Because actually I am not considering building a repeater, I think it has to have another turn around solution.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on December 4, 2017 19:13 (last edited on December 4, 2017 19:22)

I generally prefer not to use repeater. I'd rather create a custom search index. It works much much faster then repeater and there is no DB connection in this case you operate with local files on disc on the exact same server. Try it. It might give you a much better performance and you don't have to develop a custom web part. P.S. you might even use that custom smart search web part that I mentioned above.

0 votesVote for this answer Mark as a Correct answer

Laura Frese answered on December 5, 2017 19:36

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.