Display loader after an optionnal delay

It prevent loader flicks when the display duration is very short by delaying the displaying and cancelling delay if hide during this delay