Ads 468x60px

Bollywood news

Pages

Monday, March 28, 2011

How to PHP Flush Buffer Early to Speed Website Loading

tweet 
Facebook share

Did we know we can operate PHP wash out function to wash out aegis early upon your server to speed site loading.  I was celebration of a mass this extraordinary Yahoo! guide about best practices for creation web pages bucket faster, as well as yet many alternative tips were usual as well as used by many webmasters for faster site loading, this was latest to me.

How does PHP Flush work?

When a page is requested upon your server,  it takes 200-500ms for a backend server to  stitch a HTML page. While a  browser is resting as it waits, we can operate PHP function flush() which allows you to send your to some extent ready HTML reply to a browser so which a browser can begin attractive components whilst your backend is bustling with a rest of a HTML page. The good is generally seen upon bustling backends or light frontends. Learn some-more about PHP flush() function, a uses as well as limitations.

Where to Add PHP Flush in HTML

They suggest to supplement it right after a HEAD tags as well as prior to a BODY tags upon your html page. This allows browser to fetch CSS as well as JavaScript files in together whilst a backend is still processing.

</head>
<?php flush(); ?>
<body>

Have we attempted PHP wash out upon your server? Have we beheld a disproportion in site speed? Every millisecond counts, generally given site speed is a Google poke engine ranking cause now.

Original article: How to PHP Flush Buffer Early to Speed Website Loading

Copyright 2011. Quick Online Tips. All Rights Reserved.



0 comments:

Post a Comment