Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.