Optimize showing of chatrooms

- by using documentFragment