Friday, August 21, 2020

Use PHP Flush To Improve Site Loading Speed

Use PHP Flush To Improve Site Loading Speed Make Money Online Queries? Struggling To Get Traffic To Your Blog? Sign Up On (HBB) Forum Now!Use PHP Flush To Improve Site Loading SpeedUpdated On 17/04/2017Author : Pradeep KumarTopic : Tips and tricksShort URL : http://hbb.me/2oz7AGy CONNECT WITH HBB ON SOCIAL MEDIA Follow @HellBoundBlogEver since Google started to consider site speed for search rankings, webmasters and bloggers started to improve site loading speed.You can check the best tools to improve site loading speed, FYI, you can also use Google Analytics to check site speed.Why To Add 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 optimizatio n, and nothing wrong in doing it.Where To Add PHP Flush Function?To allow the browser to fetch CSS and JavaScript files in parallel, without disturbing the backend, it is recommened to use the function ?php flush(); ? in between /head and body tags. If you are using WordPress, then you have to edit header.php file probably./head ?php flush(); ? bodyThis is a simple tweak, and do tell us if this works for you. READ4 Simple Tips To Use VoIP Services Efficiently

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.