[c.] An adverbial clause which precedes a main clause is usually set off by a comma.

When long:

When ending in words that link themselves with words in the main clause:

When not closely connected with the main clause in meaning:

[Note.]—The comma is usually omitted when the adverbial clause follows the main clause.

[d.] Restrictive clauses should not be set off by commas; non-restrictive clauses should be set off by commas. (A restrictive clause is one inseparably connected with the noun or pronoun it modifies; to omit it would change the thought of the main clause. A non-restrictive clause is less vitally connected with the noun or pronoun; to omit it would not affect the thought of the main clause.)