When it falls on Saturday night, it would have been appropriate to perform havdalah before the reading of the megillah, for how can we benefit from the light when we have not yet recited the blessing "Who creates the lights of the fire"? And at the very least, we should have recited the blessing "Who creates the lights of the fire" before the reading of the megillah, but even regarding this—the custom is not so. And the reason: because everyone needs to perform havdalah in his home, and he needs to also recite the blessing "Who creates the lights of the fire" for the sake of the members of his household, and why should he recite it two times? Therefore, even in the synagogue, they do not perform havdalah before the megillah. Furthermore: for we have a general rule that we delay havdalah as much as we can, so as not to completely remove from ourselves all the sanctity of the Shabbat. And if it is because of benefiting from the light during the reading of the megillah before the blessing "Who creates the lights of the fire"—there is no concern in this, for we have not found that it is forbidden to benefit from the light before this blessing. For we have already recited in the morning the blessing "Who forms the luminaries," and there is no case here of one who benefits from this world without a blessing. And the blessing "Who creates the lights of the fire" is because of its creation on Saturday night, as is explained in the Gemara. If so, our custom is well-founded. And know that "Veyiten Lecha" is said after "Ve'atah Kadosh" or after havdalah, according to the custom of every Saturday night. And when Purim falls on Saturday night—one must be careful not to bring the megillah on Shabbat to the synagogue, for it is forbidden to exert oneself on Shabbat for a weekday. And even by means of a minor it is not proper; rather, he should prepare it from the eve of Shabbat, or bring it after Ma'ariv. However, it is possible that if he will look into it to understand it on Shabbat itself, to study it and expound upon it—it is possible that it is permitted to bring it, for he does this for the sake of Shabbat, as it is permitted to study it on Shabbat. Nevertheless, we are careful not to come to this (see Sha'arei Teshuva).
כשחל במוצאי שבת, היה מהראוי להבדיל קודם קריאת המגילה, דאיך נהנה מהאור ועדיין לא ברכנו "בורא מאורי האש"?ולכל הפחות ברכת "בורא מאורי האש" היה לנו לברך קודם קריאת המגילה, אלא דגם זה – אין המנהג כן. והטעם: משום דכל אחד צריך להבדיל בביתו, וצריך לברך גם ברכת "בורא מאורי האש" בשביל בני ביתו, ולמה יברך שני פעמים? ולכן גם בבית הכנסת אין מבדילין קודם המגילה. ועוד: דכללא בידינו דהבדלה מאחרין בכל אשר נוכל, לבלי לסלק מעלינו לגמרי כל קדושת השבת. ואי משום שנהנין מן האור בקריאת המגילה קודם ברכת "בורא מאורי האש" – אין שום חשש בזה, דלא מצינו שאסור ליהנות מהאור קודם ברכה זו. שהרי כבר ברכנו בבוקר ברכת "יוצר המאורות", ואין כאן הנהנה מן העולם הזה בלא ברכה. וברכת "בורא מאורי האש" היא מפני יצירתה במוצאי שבת, כמבואר בגמרא. ואם כן מנהגינו עולה יפה. ודע כי "ויתן לך" אומרים אחר "ואתה קדוש" או אחר הבדלה, כפי המנהג בכל מוצאי שבתות. וכשחל פורים במוצאי שבת – יש ליזהר שלא להביא את המגילה בשבת לבית הכנסת, דאסור להטריח את עצמו משבת לחול. ואפילו על ידי קטן אינו נכון, אלא יכין מערב שבת, או יביאנה אחר מעריב. אך אפשר אם יעיין בה להבין בשבת עצמה, ללומדה ולדורשה – אפשר דמותר להביא, שהרי עושה זה בשביל שבת, שהרי מותר ללומדה בשבת. ומכל מקום נזהרים שלא לבוא לידי זה (עיין שערי תשובה).