Optimize loading animation