~が{早|はや}いか
No sooner … than …; the moment …
N1
V (dictionary / ta-form) + が{早|はや}いか
~が{早|はや}いか says two actions happen almost at the same moment; the second clause is something the speaker observed, usually in the past. It is a written expression ({書|か}き{言葉|ことば}) with a quick, hurried feel. The second clause cannot be the speaker's will, an order or a request (not 「{着|つ}くが{早|はや}いか{電話|でんわ}してください」). It is close to ~たとたん (N3) and to ~や{否|いな}や and ~なり (N1). Typical verbs before it are {鳴|な}る, {開|ひら}く, {終|お}わる and {帰|かえ}る.
Examples
終業のベルが鳴るが早いか、彼は更衣室へ走っていった。
The moment the closing bell rang, he ran off to the locker room.
新製品が店頭に並ぶが早いか、客が次々と手に取った。
No sooner were the new products on the shelves than customers started picking them up one after another.
息子は家に帰るが早いか、カバンを放り出して遊びに行った。
As soon as my son got home, he threw down his bag and went out to play.
Exercises
1.電車のドアが開く 、乗客たちはホームへ駆け出した。
2.社長の話が終わるが 、記者たちが一斉に質問を始めた。