In case of an earthquake the windowpanes shatter first. I do know that this is related to resonance, but that would mean, the frequency of excited vibration(due to earth-quake) matches with the natural frequency of glass window. But again i find this explanation incomplete, can anyone elaborate this and explain further.