How to display HTML to the browser incrementally over a long period of time?

前端 未结 8 792
生来不讨喜
生来不讨喜 2020-12-05 11:58

Do I need to pass back any HTTP headers to tell the browser that my server won\'t be immediately closing the connection and to display as the HTML is received? Is there anyt

8条回答
  •  渐次进展
    2020-12-05 12:12

    Depending on what you are doing, you could just echo as your script proceeds, this will then send the html to the browser as it is echoed.

提交回复
热议问题