Events on load and load error, remove loader