DEV Community

Discussion on: Add a loader to your website

Collapse
 
viracoding profile image
viracoding

Do u find it okay to use setTimeout on your page? I try every time to avoid it.

Collapse
 
clementgaudiniere profile image
Clément Gaudinière

The setimeout is not there to define the duration of the loader but to coordinate the keyframe animation and the display : none animation in javascript.