Improve performance of topicList.js