Add loading class while content is loading