Good day to all.

Imagine HTML / PHP page ... There are a lot of different things inside it. It is required in the first lines of the page (or in the first) to write such a command that would prevent the page from loading for the specified number of seconds (in my case, 2). Is there such a thing?

    1 answer 1

    Everything is very simple:

    sleep(2); 

    And you can use output buffering:

     ob_start(); //Открываем буфер //Тут код/данные, которые нужно сначала прогрузить ob_end_flush(); //Закрываем буфер и отправляем данные клиенту 
    • THX. I learned more than I wanted. - sergey