Critical behaviour of magnetic losses