Does anyone know how to add pre-loader to all the pages?

hi, does any one know how to add pre-loader to all the pages . i’ve used couple of scripts but they aren’t working properly.

Which preloader-code did you use?
Where did you place the preloader code?

You need something like…
https://www.media-junkie.com/

Refresh the page and see the PRELOADING