This is the issue:
- I create a ContentBySearchWebpart, specified with my custom Display templates.'
- I want to run some other javascript code, after the Display Templates have rendered the content
I then register my custom javascript file in Display template.
$includeScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Slider.js")'
The problem is that my Slider.js file code executes before the 'Display Templates' Javascript code does.
Can anybody provide me a way to execute my Slider.js code after the display templates have rendered the content of ContentBySearchWebpart(CSWP)?