Как сделать предварительную загрузку в HTML

window. addEventListener ("load", function() { loader. style. display = 'none'; });
Yasin