On the start page of a Sharepoint 2013 Intranet portal I put a search result webpart. The webpart is styled and formatted into a slider with jQuery & CSS
For some reason sometimes the jQuery on search result webparts is not triggered. This only occurs after an iisreset or when there's a delay for some other reason. After refreshing the page the slider loads without any problem.
I've tried several solution (_spBodyOnLoadFunctionNames, SP.SOD.execeuteFunc, executeOrDalayUntilScriptLoaded), but none of them seems to work. My current code looks like:
function PageLoadTrigger() {
// initiate slider
}
_spBodyOnLoadFunctionNames.push("PageLoadTrigger");
It only seems to happen on search result webparts. All other jQyery runs fine.
Is anyone aware of this problem and is there a solution?