If there is an external magnetic field B present, then J precesses about the direction of B while L and S continue precessing about J. The precession of J about B is what gives rise to the anomalous Zeeman effect, since different orientations of J involve slightly different energies in the presence of B.