To all expert

how to make a smooth preloader? my previous preloader skipping the percentage rate. 20%, and then 25%, and then 45%…?? what’s the reason of that. help me pls… pls give me some example, or code. thnks a lot.