Greetings
Lag can be caused by a lot of different reasons.
For things under your control, check out the following.
https://support.chess.com/article/4720-online-chess-performance-optimizations
https://support.chess.com/article/213-how-do-i-fix-my-disconnect-lag-issues
Greetings