Page preloader that calculates the loading progress of page resources such as images, videos, and custom elements. Provides smooth progress calculation using an animation frame and optionally a timeline for forced completion.
Requires styles. See the source code.