css, logic and performance