Flush Function in PHP – small code with a big Influence (Basic)
As Google started to consider site speed for search rankings, webmasters and Seo Masters started to improve site loading speed. Although there a lot of heavy ways to speed up your site , but there must be some small tweaks that every one can do it . so be with us for a small ,huge tweak.
PHP Flush Function :
PHP function flush() allows you to send your partially ready HTML response to the browser so that it will start to fetch the components while your backend is still busy with the rest of the HTML page. You can experience this effect when you have busy backends or light frontends.
Though the speed increase will actually depend on the server-side processing, page weight, and size of your CSS files. It is a simple optimization, and nothing wrong in doing it.
Where and How we use it ?
For example : If you are using WordPress, then you have to edit header.php file probably.
<?php flush(); ?>
so,just <?php flush(); ?> after the head tag in every site you have.
Source : Sctut