Use transitions instead of animations to fade in/out new loading HTML,
as animations were a bit buggy in Firefox