Check that promises are defined
Use regular fileSize for scroll position calculation