Always, First, heat the pan and then add the oil.

Add oil to a hot pan to prevent the oil from breaking down and forming a gummy substance on the pan.
The food sticks less to the pan if you heat up the pan and then pour oil in it.
When the oil gets hot it gets the ripples and shimmer then add the ingredients.
Also, first heating the pan will make sure there is no water in the pan.