AfterRenderJavaScript is only fired when a callback is finished. It's not fired after the initial rendering.
Because the init code is now moved to window.onload handler, I will need to update it to be fired after the initial rendering as well (so you can run your own code dependent on DayPilotCalendar client-side object from there). It should be changed in
DayPilot Pro 5.0.