Fixed frane load event in firefox