fixed dynamic size checking for page loading, added video pausing when off screen.