What are the functions of the loading dye in electrophoresis how can DNA be prepared for visualization?

The dye can allow us to view the DNA after separation from electrophoresis. Without the dye, it is hard for us to see how far fragments of DNA traveled from their original location.