pass total items onReady callback