PHP Flush: How Often and Best Practices

前端 未结 4 1334
梦谈多话
梦谈多话 2020-12-13 19:34

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

4条回答
  •  孤街浪徒
    2020-12-13 20:26

    Following Piskvor's point - if you are expecting a 20s+ wait, you may be better off providing a basic page (which can be gzipped) and using Ajax to update the page when the slow process has finished. You do start to infringe the basic usefulness of static html, though.

提交回复
热议问题