add beforeload event

Please add beforeload event that can cancel load event. It is great for example for pre ad.