There is a way to attach to an event which will inform us when the search results have been loaded from the server. We can do it like this:
XA.component.search.vent.on("results-loaded", function (data) {
//logic here
}
The Search Results rendering is using exactly the same event to get the data and then render them on the page.
But how actually known when those results are actually rendered on the page? This might be useful in case if I would like e.g.: attach additional events to HTML elements rendered by rendering.