MB3 13b: Definition of a Mitzvah Re: Travel (248:4 cont); Traveling on Erev Shabbos (249:1)

What is considered travelling for a mitzvah purpose vis-a-vis leaving on a journey within 3 days of Shabbos? What if you can get there before Shabbos?