Add preloader for pdf reader