Jump to content

Load surrounding html while php is still executing?


Voldemort

Recommended Posts

I've got a script that takes around twenty seconds to execute, and while that's going on, all you can see is the top of the page. Is there a way (perhaps with a buffer?) to load the surrounding html and then, when all of the variables are set and ready to go, show it?

 

Oh, and I've now been logged in for 24 hours total :D yay! Enough sidetracking... does anyone know how to accomplish this?

I think if you have no output buffering, and you echo the html to the browser first, then execute whatever code takes 20 seconds, the browser will receive the initial html, then wait for more while the remaining code executes.

 

I haven't tested it, but it works in my head.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.