Fixed loading during $(document).ready().