dany994,
возможно вы хотели так ...
preloader_in();
var time = performance.now();
$('.preloader---inner-content-images-inner').waitForImages().done(function() {
var duration = performance.now() - time;
if (duration > 3000) {
preloader_out();
} else {
setTimeout(function(){
preloader_out();
}, 3000 - duration);
}
});