PHP Flush: How Often and Best Practises

Posted by Cory Dee on Stack Overflow See other posts from Stack Overflow or by Cory Dee
Published on 2008-12-09T13:51:44Z Indexed on 2010/03/30 13:13 UTC
Read the original article Hit count: 634

Filed under:
|
|
|

I just finished reading this post: http://developer.yahoo.com/performance/rules.html#flush and have already implemented a flush after the top portion of my page loads (head, css, top banner/search/nav).

Is there any performance hit in flushing? Is there such a thing as doing it too often? What are the best practices?

If I am going to hit an external API for data, would it make sense to flush before hand so that the user isn't waiting on that data to come back, and can at least get some data before hand?

Thanks to everyone in advance.

© Stack Overflow or respective owner

Related posts about optimization

Related posts about php