make teacher course detail page render faster