Want to run a function when algolia loads the record on page

Can anyone tell me the location of file from where i can run my jquery function when aloglia loads records on page?

Hi @shujaatonline, Iā€™m not sure I understand your question. Can you provide more information and any sample code that you have?

Hi @shujaatonline, Are you using instantsearch.js?

If yes, there is an event that gets triggered after algolia displays all the results.

You can do something like the following

function onRenderHandler() {
  // your jquery function you want to run
}

search.on('render', onRenderHandler);

I hope this clears your doubt.

2 Likes