optimized loading bar