This is a general purpose issue for styling-related glitches and performance degradation. In general the solution is going to be "use efficient css over javascript" but not always.