Fixed: error with displaying progress bar on document loading. Fixed bad preload function - replace it.