Questions & Answers about Ons was skaars weg of die kajak het omgeslaan.
Yes, of often means or, but in the structure skaars ... of, it has a different function.
Here it links two events that happen almost immediately one after the other:
So in this expression, of is best understood as when or before in English, not or.