On a yartzeit (anniversary of death on Hebrew calendar) for a deceased family member, if one plans to both light a yartzeit candle in one's home and attend shul to say kaddish, is there a preference to light the candle before leaving for shul before mincha (i.e. some time before the actual yartzeit has started) or after returning home from shul after maariv (i.e. some time after the actual yartzeit has started)?
My understanding is there is no halachic obligation to light a candle, per se, but it is a common and meaningful custom.
(Of course, this question only applies when the yartzeit is not on shabbat, since in that case the candle would need to be lit before accepting shabbat regardless.)